Temporary fix for participant count being nullable

This commit is contained in:
Dean Herbert 2018-12-26 22:25:15 +09:00
parent f6aa6e6b3c
commit 6b7b0af2e4
1 changed files with 9 additions and 1 deletions

View File

@ -49,9 +49,17 @@ public class Room
[JsonIgnore]
public Bindable<IEnumerable<User>> Participants { get; private set; } = new Bindable<IEnumerable<User>>(Enumerable.Empty<User>());
[JsonProperty("participant_count")]
public Bindable<int> ParticipantCount { get; private set; } = new Bindable<int>();
// todo: TEMPORARY
[JsonProperty("participant_count")]
private int? participantCount
{
get => ParticipantCount;
set => ParticipantCount.Value = value ?? 0;
}
[JsonProperty("duration")]
private int duration
{