mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 15:03:12 +08:00
Omit irrelevant data from SoloScoreInfo serialisation
This commit is contained in:
parent
55234e8069
commit
8ff7770a71
@ -102,6 +102,14 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty("pp")]
|
[JsonProperty("pp")]
|
||||||
public double? PP { get; set; }
|
public double? PP { get; set; }
|
||||||
|
|
||||||
|
public bool ShouldSerializeID() => false;
|
||||||
|
public bool ShouldSerializeUser() => false;
|
||||||
|
public bool ShouldSerializeBeatmap() => false;
|
||||||
|
public bool ShouldSerializeBeatmapSet() => false;
|
||||||
|
public bool ShouldSerializePP() => false;
|
||||||
|
public bool ShouldSerializeOnlineID() => false;
|
||||||
|
public bool ShouldSerializeHasReplay() => false;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public override string ToString() => $"score_id: {ID} user_id: {UserID}";
|
public override string ToString() => $"score_id: {ID} user_id: {UserID}";
|
||||||
|
Loading…
Reference in New Issue
Block a user