Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 662df37

Browse files
authored
Merge pull request #832 from microsoft/trboehre/meeting
Teams schema class corrections
2 parents 270ae32 + 0720411 commit 662df37

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/CacheInfo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/MeetingParticipantInfo.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.microsoft.bot.schema.teams;
22

3+
import com.fasterxml.jackson.annotation.JsonInclude;
34
import 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
}

0 commit comments

Comments
 (0)