mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 17:52:54 +08:00
add StringEnumConverter
for RelationType
This commit is contained in:
parent
9e4c382a61
commit
729c7f11a9
@ -2,6 +2,7 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace osu.Game.Online.API.Requests.Responses
|
||||
{
|
||||
@ -20,6 +21,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
public APIUser? TargetUser { get; set; }
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum RelationType
|
||||
{
|
||||
Friend,
|
||||
|
Loading…
Reference in New Issue
Block a user