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

Teams schema class corrections #832

Merged
merged 1 commit into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class CacheInfo {
private String cacheType;

@JsonProperty(value = "cacheDuration")
private int cacheDuration;
private Integer cacheDuration;

/**
* Gets cache type.
Expand All @@ -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;
}

Expand All @@ -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;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.microsoft.bot.schema.teams;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand All @@ -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.
Expand All @@ -32,15 +34,15 @@ 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;
}

/**
* 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;
}
}