1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:23:22 +08:00

Add start date to Room

This commit is contained in:
Bartłomiej Dach 2024-05-31 11:49:56 +02:00
parent 94b7148a9e
commit 6fb0cabf36
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View File

@ -146,6 +146,11 @@ namespace osu.Game.Online.Rooms
#endregion
// Only supports retrieval for now
[Cached]
[JsonProperty("starts_at")]
public readonly Bindable<DateTimeOffset?> StartDate = new Bindable<DateTimeOffset?>();
// Only supports retrieval for now
[Cached]
[JsonProperty("ends_at")]

View File

@ -68,6 +68,9 @@ namespace osu.Game.Screens.OnlinePlay
[Resolved(typeof(Room))]
public Bindable<PlaylistAggregateScore> UserScore { get; private set; }
[Resolved(typeof(Room))]
protected Bindable<DateTimeOffset?> StartDate { get; private set; }
[Resolved(typeof(Room))]
protected Bindable<DateTimeOffset?> EndDate { get; private set; }