This repository was archived by the owner on Dec 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public class CacheInfo {
1313 private String cacheType ;
1414
1515 @ JsonProperty (value = "cacheDuration" )
16- private int cacheDuration ;
16+ private Integer cacheDuration ;
1717
1818 /**
1919 * Gets cache type.
@@ -35,7 +35,7 @@ public void setCacheType(String withCacheType) {
3535 * Gets cache duration.
3636 * @return The time in seconds for which the cached object should remain in the cache.
3737 */
38- public int getCacheDuration () {
38+ public Integer getCacheDuration () {
3939 return cacheDuration ;
4040 }
4141
@@ -44,7 +44,7 @@ public int getCacheDuration() {
4444 * @param withCacheDuration The time in seconds for which the cached object should
4545 * remain in the cache.
4646 */
47- public void setCacheDuration (int withCacheDuration ) {
47+ public void setCacheDuration (Integer withCacheDuration ) {
4848 cacheDuration = withCacheDuration ;
4949 }
5050}
Original file line number Diff line number Diff line change 11package com .microsoft .bot .schema .teams ;
22
3+ import com .fasterxml .jackson .annotation .JsonInclude ;
34import com .fasterxml .jackson .annotation .JsonProperty ;
45
56/**
@@ -10,7 +11,8 @@ public class MeetingParticipantInfo {
1011 private String role ;
1112
1213 @ JsonProperty (value = "inMeeting" )
13- private boolean inMeeting ;
14+ @ JsonInclude (JsonInclude .Include .NON_EMPTY )
15+ private Boolean inMeeting ;
1416
1517 /**
1618 * Gets the participant's role in the meeting.
@@ -32,15 +34,15 @@ public void setRole(String withRole) {
3234 * Gets a value indicating whether the participant is in the meeting or not.
3335 * @return The value indicating if the participant is in the meeting.
3436 */
35- public boolean isInMeeting () {
37+ public Boolean isInMeeting () {
3638 return inMeeting ;
3739 }
3840
3941 /**
4042 * Sets a value indicating whether the participant is in the meeting or not.
4143 * @param withInMeeting The value indicating if the participant is in the meeting.
4244 */
43- public void setInMeeting (boolean withInMeeting ) {
45+ public void setInMeeting (Boolean withInMeeting ) {
4446 inMeeting = withInMeeting ;
4547 }
4648}
You can’t perform that action at this time.
0 commit comments