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 {
13
13
private String cacheType ;
14
14
15
15
@ JsonProperty (value = "cacheDuration" )
16
- private int cacheDuration ;
16
+ private Integer cacheDuration ;
17
17
18
18
/**
19
19
* Gets cache type.
@@ -35,7 +35,7 @@ public void setCacheType(String withCacheType) {
35
35
* Gets cache duration.
36
36
* @return The time in seconds for which the cached object should remain in the cache.
37
37
*/
38
- public int getCacheDuration () {
38
+ public Integer getCacheDuration () {
39
39
return cacheDuration ;
40
40
}
41
41
@@ -44,7 +44,7 @@ public int getCacheDuration() {
44
44
* @param withCacheDuration The time in seconds for which the cached object should
45
45
* remain in the cache.
46
46
*/
47
- public void setCacheDuration (int withCacheDuration ) {
47
+ public void setCacheDuration (Integer withCacheDuration ) {
48
48
cacheDuration = withCacheDuration ;
49
49
}
50
50
}
Original file line number Diff line number Diff line change 1
1
package com .microsoft .bot .schema .teams ;
2
2
3
+ import com .fasterxml .jackson .annotation .JsonInclude ;
3
4
import com .fasterxml .jackson .annotation .JsonProperty ;
4
5
5
6
/**
@@ -10,7 +11,8 @@ public class MeetingParticipantInfo {
10
11
private String role ;
11
12
12
13
@ JsonProperty (value = "inMeeting" )
13
- private boolean inMeeting ;
14
+ @ JsonInclude (JsonInclude .Include .NON_EMPTY )
15
+ private Boolean inMeeting ;
14
16
15
17
/**
16
18
* Gets the participant's role in the meeting.
@@ -32,15 +34,15 @@ public void setRole(String withRole) {
32
34
* Gets a value indicating whether the participant is in the meeting or not.
33
35
* @return The value indicating if the participant is in the meeting.
34
36
*/
35
- public boolean isInMeeting () {
37
+ public Boolean isInMeeting () {
36
38
return inMeeting ;
37
39
}
38
40
39
41
/**
40
42
* Sets a value indicating whether the participant is in the meeting or not.
41
43
* @param withInMeeting The value indicating if the participant is in the meeting.
42
44
*/
43
- public void setInMeeting (boolean withInMeeting ) {
45
+ public void setInMeeting (Boolean withInMeeting ) {
44
46
inMeeting = withInMeeting ;
45
47
}
46
48
}
You can’t perform that action at this time.
0 commit comments