mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:09:34 +08:00
56 lines
1.3 KiB
C#
56 lines
1.3 KiB
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using Newtonsoft.Json;
|
|
using osu.Framework.Configuration;
|
|
|
|
namespace osu.Game.Users
|
|
{
|
|
public class User
|
|
{
|
|
[JsonProperty(@"id")]
|
|
public long Id = 1;
|
|
|
|
[JsonProperty(@"username")]
|
|
public string Username;
|
|
|
|
[JsonProperty(@"country_code")]
|
|
public string CountryCode;
|
|
|
|
[JsonProperty(@"country")]
|
|
public Country Country;
|
|
|
|
public Bindable<UserStatus> Status = new Bindable<UserStatus>();
|
|
|
|
public int GlobalRank;
|
|
|
|
public int CountryRank;
|
|
|
|
//public Team Team;
|
|
|
|
[JsonProperty(@"profile_colour")]
|
|
public string Colour;
|
|
|
|
[JsonProperty(@"avatar_url")]
|
|
public string AvatarUrl;
|
|
|
|
[JsonProperty(@"cover_url")]
|
|
public string CoverUrl;
|
|
|
|
//[JsonProperty(@"cover")]
|
|
//public UserCover Cover;
|
|
|
|
public class UserCover
|
|
{
|
|
[JsonProperty(@"custom_url")]
|
|
public string CustomUrl;
|
|
|
|
[JsonProperty(@"url")]
|
|
public string Url;
|
|
|
|
[JsonProperty(@"id")]
|
|
public int? Id;
|
|
}
|
|
}
|
|
}
|