2017-02-07 12:59:30 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-08-31 11:33:01 +08:00
|
|
|
|
|
2017-03-27 23:04:07 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
2016-08-31 11:33:01 +08:00
|
|
|
|
namespace osu.Game.Users
|
|
|
|
|
{
|
|
|
|
|
public class User
|
|
|
|
|
{
|
2017-03-27 23:04:07 +08:00
|
|
|
|
[JsonProperty(@"id")]
|
|
|
|
|
public long Id = 1;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"username")]
|
2016-08-31 11:33:01 +08:00
|
|
|
|
public string Username;
|
2017-03-27 23:04:07 +08:00
|
|
|
|
|
2017-04-19 15:02:18 +08:00
|
|
|
|
//[JsonProperty(@"country")]
|
|
|
|
|
[JsonIgnore]
|
2017-03-19 11:09:58 +08:00
|
|
|
|
public Country Country;
|
2017-03-27 23:04:07 +08:00
|
|
|
|
|
2017-04-19 15:02:18 +08:00
|
|
|
|
//public Team Team;
|
2017-03-27 23:04:07 +08:00
|
|
|
|
|
|
|
|
|
[JsonProperty(@"colour")]
|
|
|
|
|
public string Colour;
|
2017-04-11 13:00:21 +08:00
|
|
|
|
|
2017-04-19 15:02:18 +08:00
|
|
|
|
[JsonProperty(@"avatarUrl")]
|
|
|
|
|
public string AvatarUrl;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"cover")]
|
|
|
|
|
public UserCover Cover;
|
|
|
|
|
|
|
|
|
|
public class UserCover
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty(@"customUrl")]
|
|
|
|
|
public string CustomUrl;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"url")]
|
|
|
|
|
public string Url;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"id")]
|
|
|
|
|
public int? Id;
|
|
|
|
|
}
|
2016-08-31 11:33:01 +08:00
|
|
|
|
}
|
|
|
|
|
}
|