1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-10 01:03:21 +08:00

add StringEnumConverter for RelationType

This commit is contained in:
cdwcgt 2024-11-01 19:15:20 +08:00
parent 9e4c382a61
commit 729c7f11a9
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace osu.Game.Online.API.Requests.Responses namespace osu.Game.Online.API.Requests.Responses
{ {
@ -20,6 +21,7 @@ namespace osu.Game.Online.API.Requests.Responses
public APIUser? TargetUser { get; set; } public APIUser? TargetUser { get; set; }
} }
[JsonConverter(typeof(StringEnumConverter))]
public enum RelationType public enum RelationType
{ {
Friend, Friend,