2020-07-22 17:47:40 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
using osu.Game.Online.API.Requests;
|
|
|
|
|
|
|
|
namespace osu.Game.Online.Multiplayer
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// An object which contains scores and related data for fetching next pages.
|
|
|
|
/// </summary>
|
2020-07-22 17:51:54 +08:00
|
|
|
public class MultiplayerScores : ResponseWithCursor
|
2020-07-22 17:47:40 +08:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The scores.
|
|
|
|
/// </summary>
|
|
|
|
[JsonProperty("scores")]
|
|
|
|
public List<MultiplayerScore> Scores { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The total scores in the playlist item. Only provided via <see cref="IndexPlaylistScoresRequest"/>.
|
|
|
|
/// </summary>
|
|
|
|
[JsonProperty("total")]
|
|
|
|
public int? TotalScores { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The user's score, if any. Only provided via <see cref="IndexPlaylistScoresRequest"/>.
|
|
|
|
/// </summary>
|
|
|
|
[JsonProperty("user_score")]
|
|
|
|
public MultiplayerScore UserScore { get; set; }
|
|
|
|
}
|
|
|
|
}
|