mirror of https://github.com/ppy/osu
Temporary fix for participant count being nullable
This commit is contained in:
parent
f6aa6e6b3c
commit
6b7b0af2e4
|
@ -49,9 +49,17 @@ public class Room
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public Bindable<IEnumerable<User>> Participants { get; private set; } = new Bindable<IEnumerable<User>>(Enumerable.Empty<User>());
|
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>();
|
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")]
|
[JsonProperty("duration")]
|
||||||
private int duration
|
private int duration
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue