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

49 lines
1.1 KiB
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-03-28 00:04:07 +09:00
using Newtonsoft.Json;
namespace osu.Game.Users
{
public class User
{
2017-03-28 00:04:07 +09:00
[JsonProperty(@"id")]
public long Id = 1;
[JsonProperty(@"username")]
public string Username;
2017-03-28 00:04:07 +09:00
2017-04-20 19:48:53 +09:00
[JsonProperty(@"country_code")]
public string CountryCode;
[JsonProperty(@"country")]
public Country Country;
2017-03-28 00:04:07 +09:00
//public Team Team;
2017-03-28 00:04:07 +09:00
2017-04-20 19:48:53 +09:00
[JsonProperty(@"profile_colour")]
2017-03-28 00:04:07 +09:00
public string Colour;
2017-04-11 14:00:21 +09:00
2017-04-20 19:48:53 +09:00
[JsonProperty(@"avatar_url")]
public string AvatarUrl;
2017-04-20 19:48:53 +09:00
[JsonProperty(@"cover_url")]
public string CoverUrl;
//[JsonProperty(@"cover")]
//public UserCover Cover;
public class UserCover
{
2017-04-20 19:48:53 +09:00
[JsonProperty(@"custom_url")]
public string CustomUrl;
[JsonProperty(@"url")]
public string Url;
[JsonProperty(@"id")]
public int? Id;
}
}
}