mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 16:32:59 +08: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",
|
Name = "Spotlight 1",
|
||||||
StartDate = DateTimeOffset.Now,
|
StartDate = DateTimeOffset.Now,
|
||||||
EndDate = DateTimeOffset.Now,
|
EndDate = DateTimeOffset.Now,
|
||||||
ParticipantCount = 100
|
|
||||||
},
|
},
|
||||||
new APISpotlight
|
new APISpotlight
|
||||||
{
|
{
|
||||||
Name = "Spotlight 2",
|
Name = "Spotlight 2",
|
||||||
StartDate = DateTimeOffset.Now,
|
StartDate = DateTimeOffset.Now,
|
||||||
EndDate = DateTimeOffset.Now,
|
EndDate = DateTimeOffset.Now,
|
||||||
ParticipantCount = 200
|
|
||||||
},
|
},
|
||||||
new APISpotlight
|
new APISpotlight
|
||||||
{
|
{
|
||||||
Name = "Spotlight 3",
|
Name = "Spotlight 3",
|
||||||
StartDate = DateTimeOffset.Now,
|
StartDate = DateTimeOffset.Now,
|
||||||
EndDate = DateTimeOffset.Now,
|
EndDate = DateTimeOffset.Now,
|
||||||
ParticipantCount = 300
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,9 +26,6 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty(@"end_date")]
|
[JsonProperty(@"end_date")]
|
||||||
public DateTimeOffset EndDate;
|
public DateTimeOffset EndDate;
|
||||||
|
|
||||||
[JsonProperty(@"participant_count")]
|
|
||||||
public int ParticipantCount;
|
|
||||||
|
|
||||||
public override string ToString() => Name;
|
public override string ToString() => Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,6 @@ namespace osu.Game.Overlays.Rankings
|
|||||||
|
|
||||||
private readonly InfoColumn startDateColumn;
|
private readonly InfoColumn startDateColumn;
|
||||||
private readonly InfoColumn endDateColumn;
|
private readonly InfoColumn endDateColumn;
|
||||||
private readonly InfoColumn participants;
|
|
||||||
|
|
||||||
public SpotlightSelector()
|
public SpotlightSelector()
|
||||||
{
|
{
|
||||||
@ -75,7 +74,6 @@ namespace osu.Game.Overlays.Rankings
|
|||||||
{
|
{
|
||||||
startDateColumn = new InfoColumn(@"Start Date"),
|
startDateColumn = new InfoColumn(@"Start Date"),
|
||||||
endDateColumn = new InfoColumn(@"End 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);
|
startDateColumn.Value = dateToString(spotlight.NewValue.StartDate);
|
||||||
endDateColumn.Value = dateToString(spotlight.NewValue.EndDate);
|
endDateColumn.Value = dateToString(spotlight.NewValue.EndDate);
|
||||||
participants.Value = spotlight.NewValue.ParticipantCount.ToString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private string dateToString(DateTimeOffset date) => date.ToString("yyyy-MM-dd");
|
private string dateToString(DateTimeOffset date) => date.ToString("yyyy-MM-dd");
|
||||||
|
Loading…
Reference in New Issue
Block a user