1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 15:23:21 +08:00

Also make APIUser opt-in and remove the remaining serialization exclusion rule

This commit is contained in:
Dean Herbert 2022-02-23 17:12:38 +09:00
parent 43c83d2de1
commit 53bbd00675
2 changed files with 1 additions and 12 deletions

View File

@ -12,6 +12,7 @@ using osu.Game.Users;
namespace osu.Game.Online.API.Requests.Responses
{
[JsonObject(MemberSerialization.OptIn)]
public class APIUser : IEquatable<APIUser>, IUser
{
[JsonProperty(@"id")]

View File

@ -3,7 +3,6 @@
using System;
using System.Linq;
using JetBrains.Annotations;
using Newtonsoft.Json;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
@ -219,17 +218,6 @@ namespace osu.Game.Online.Rooms
Playlist.RemoveAll(i => i.Expired);
}
#region Newtonsoft.Json implicit ShouldSerialize() methods
// The properties in this region are used implicitly by Newtonsoft.Json to not serialise certain fields in some cases.
// They rely on being named exactly the same as the corresponding fields (casing included) and as such should NOT be renamed
// unless the fields are also renamed.
[UsedImplicitly]
public bool ShouldSerializeHost() => false;
#endregion
[JsonObject(MemberSerialization.OptIn)]
public class RoomPlaylistItemStats
{