mirror of
https://github.com/ppy/osu
synced 2024-12-11 01:19:26 +00:00
Remove participant count (not returned by API)
This commit is contained in:
parent
05702af905
commit
33993837b7
@ -41,21 +41,18 @@ namespace osu.Game.Tests.Visual.Online
|
||||
Name = "Spotlight 1",
|
||||
StartDate = DateTimeOffset.Now,
|
||||
EndDate = DateTimeOffset.Now,
|
||||
ParticipantCount = 100
|
||||
},
|
||||
new APISpotlight
|
||||
{
|
||||
Name = "Spotlight 2",
|
||||
StartDate = DateTimeOffset.Now,
|
||||
EndDate = DateTimeOffset.Now,
|
||||
ParticipantCount = 200
|
||||
},
|
||||
new APISpotlight
|
||||
{
|
||||
Name = "Spotlight 3",
|
||||
StartDate = DateTimeOffset.Now,
|
||||
EndDate = DateTimeOffset.Now,
|
||||
ParticipantCount = 300
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -26,9 +26,6 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
[JsonProperty(@"end_date")]
|
||||
public DateTimeOffset EndDate;
|
||||
|
||||
[JsonProperty(@"participant_count")]
|
||||
public int ParticipantCount;
|
||||
|
||||
public override string ToString() => Name;
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,6 @@ namespace osu.Game.Overlays.Rankings
|
||||
|
||||
private readonly InfoColumn startDateColumn;
|
||||
private readonly InfoColumn endDateColumn;
|
||||
private readonly InfoColumn participants;
|
||||
|
||||
public SpotlightSelector()
|
||||
{
|
||||
@ -75,7 +74,6 @@ namespace osu.Game.Overlays.Rankings
|
||||
{
|
||||
startDateColumn = new InfoColumn(@"Start Date"),
|
||||
endDateColumn = new InfoColumn(@"End Date"),
|
||||
participants = new InfoColumn(@"Participants"),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -100,7 +98,6 @@ namespace osu.Game.Overlays.Rankings
|
||||
{
|
||||
startDateColumn.Value = dateToString(spotlight.NewValue.StartDate);
|
||||
endDateColumn.Value = dateToString(spotlight.NewValue.EndDate);
|
||||
participants.Value = spotlight.NewValue.ParticipantCount.ToString();
|
||||
}
|
||||
|
||||
private string dateToString(DateTimeOffset date) => date.ToString("yyyy-MM-dd");
|
||||
|
Loading…
Reference in New Issue
Block a user