diff --git a/libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/CacheInfo.java b/libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/CacheInfo.java index 2c8b5e913..917addc65 100644 --- a/libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/CacheInfo.java +++ b/libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/CacheInfo.java @@ -13,7 +13,7 @@ public class CacheInfo { private String cacheType; @JsonProperty(value = "cacheDuration") - private int cacheDuration; + private Integer cacheDuration; /** * Gets cache type. @@ -35,7 +35,7 @@ public void setCacheType(String withCacheType) { * Gets cache duration. * @return The time in seconds for which the cached object should remain in the cache. */ - public int getCacheDuration() { + public Integer getCacheDuration() { return cacheDuration; } @@ -44,7 +44,7 @@ public int getCacheDuration() { * @param withCacheDuration The time in seconds for which the cached object should * remain in the cache. */ - public void setCacheDuration(int withCacheDuration) { + public void setCacheDuration(Integer withCacheDuration) { cacheDuration = withCacheDuration; } } diff --git a/libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/MeetingParticipantInfo.java b/libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/MeetingParticipantInfo.java index c3b8597db..70e5c44b3 100644 --- a/libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/MeetingParticipantInfo.java +++ b/libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/MeetingParticipantInfo.java @@ -1,5 +1,6 @@ package com.microsoft.bot.schema.teams; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -10,7 +11,8 @@ public class MeetingParticipantInfo { private String role; @JsonProperty(value = "inMeeting") - private boolean inMeeting; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private Boolean inMeeting; /** * Gets the participant's role in the meeting. @@ -32,7 +34,7 @@ public void setRole(String withRole) { * Gets a value indicating whether the participant is in the meeting or not. * @return The value indicating if the participant is in the meeting. */ - public boolean isInMeeting() { + public Boolean isInMeeting() { return inMeeting; } @@ -40,7 +42,7 @@ public boolean isInMeeting() { * Sets a value indicating whether the participant is in the meeting or not. * @param withInMeeting The value indicating if the participant is in the meeting. */ - public void setInMeeting(boolean withInMeeting) { + public void setInMeeting(Boolean withInMeeting) { inMeeting = withInMeeting; } }