mirror of
https://github.com/ppy/osu.git
synced 2024-11-17 15:12:54 +08:00
29 lines
673 B
C#
29 lines
673 B
C#
|
// 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 Newtonsoft.Json;
|
||
|
|
||
|
namespace osu.Game.Online.API.Requests.Responses
|
||
|
{
|
||
|
public class APIRelation
|
||
|
{
|
||
|
[JsonProperty("target_id")]
|
||
|
public int TargetID { get; set; }
|
||
|
|
||
|
[JsonProperty("relation_type")]
|
||
|
public RelationType RelationType { get; set; }
|
||
|
|
||
|
[JsonProperty("mutual")]
|
||
|
public bool Mutual { get; set; }
|
||
|
|
||
|
[JsonProperty("target")]
|
||
|
public APIUser? TargetUser { get; set; }
|
||
|
}
|
||
|
|
||
|
public enum RelationType
|
||
|
{
|
||
|
Friend,
|
||
|
Block,
|
||
|
}
|
||
|
}
|