mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 17:32:54 +08:00
Add has_password
flag and region post only parameters
This commit is contained in:
parent
4fd6f2101c
commit
6a74fde082
@ -35,9 +35,6 @@ namespace osu.Game.Online.Rooms
|
|||||||
[JsonProperty("channel_id")]
|
[JsonProperty("channel_id")]
|
||||||
public readonly Bindable<int> ChannelId = new Bindable<int>();
|
public readonly Bindable<int> ChannelId = new Bindable<int>();
|
||||||
|
|
||||||
[JsonProperty("password")]
|
|
||||||
public readonly Bindable<string> Password = new Bindable<string>();
|
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public readonly Bindable<RoomCategory> Category = new Bindable<RoomCategory>();
|
public readonly Bindable<RoomCategory> Category = new Bindable<RoomCategory>();
|
||||||
@ -51,10 +48,6 @@ namespace osu.Game.Online.Rooms
|
|||||||
set => Category.Value = value;
|
set => Category.Value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Cached]
|
|
||||||
[JsonIgnore]
|
|
||||||
public readonly Bindable<TimeSpan?> Duration = new Bindable<TimeSpan?>();
|
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public readonly Bindable<int?> MaxAttempts = new Bindable<int?>();
|
public readonly Bindable<int?> MaxAttempts = new Bindable<int?>();
|
||||||
@ -79,6 +72,9 @@ namespace osu.Game.Online.Rooms
|
|||||||
[JsonProperty("current_user_score")]
|
[JsonProperty("current_user_score")]
|
||||||
public readonly Bindable<PlaylistAggregateScore> UserScore = new Bindable<PlaylistAggregateScore>();
|
public readonly Bindable<PlaylistAggregateScore> UserScore = new Bindable<PlaylistAggregateScore>();
|
||||||
|
|
||||||
|
[JsonProperty("has_password")]
|
||||||
|
public readonly BindableBool HasPassword = new BindableBool();
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
[JsonProperty("recent_participants")]
|
[JsonProperty("recent_participants")]
|
||||||
public readonly BindableList<User> RecentParticipants = new BindableList<User>();
|
public readonly BindableList<User> RecentParticipants = new BindableList<User>();
|
||||||
@ -87,6 +83,15 @@ namespace osu.Game.Online.Rooms
|
|||||||
[JsonProperty("participant_count")]
|
[JsonProperty("participant_count")]
|
||||||
public readonly Bindable<int> ParticipantCount = new Bindable<int>();
|
public readonly Bindable<int> ParticipantCount = new Bindable<int>();
|
||||||
|
|
||||||
|
#region Properties only used for room creation request
|
||||||
|
|
||||||
|
[JsonProperty("password")]
|
||||||
|
public readonly Bindable<string> Password = new Bindable<string>();
|
||||||
|
|
||||||
|
[Cached]
|
||||||
|
[JsonIgnore]
|
||||||
|
public readonly Bindable<TimeSpan?> Duration = new Bindable<TimeSpan?>();
|
||||||
|
|
||||||
[JsonProperty("duration")]
|
[JsonProperty("duration")]
|
||||||
private int? duration
|
private int? duration
|
||||||
{
|
{
|
||||||
@ -100,6 +105,8 @@ namespace osu.Game.Online.Rooms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
// Only supports retrieval for now
|
// Only supports retrieval for now
|
||||||
[Cached]
|
[Cached]
|
||||||
[JsonProperty("ends_at")]
|
[JsonProperty("ends_at")]
|
||||||
|
Loading…
Reference in New Issue
Block a user