2017-02-07 04:59:30 +00: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 03:33:01 +00:00
|
|
|
|
|
2017-03-27 15:04:07 +00:00
|
|
|
|
using Newtonsoft.Json;
|
2017-05-25 00:09:18 +00:00
|
|
|
|
using osu.Framework.Configuration;
|
2017-03-27 15:04:07 +00:00
|
|
|
|
|
2016-08-31 03:33:01 +00:00
|
|
|
|
namespace osu.Game.Users
|
|
|
|
|
{
|
|
|
|
|
public class User
|
|
|
|
|
{
|
2017-03-27 15:04:07 +00:00
|
|
|
|
[JsonProperty(@"id")]
|
|
|
|
|
public long Id = 1;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"username")]
|
2016-08-31 03:33:01 +00:00
|
|
|
|
public string Username;
|
2017-03-27 15:04:07 +00:00
|
|
|
|
|
2017-04-20 10:48:53 +00:00
|
|
|
|
[JsonProperty(@"country_code")]
|
|
|
|
|
public string CountryCode;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"country")]
|
2017-03-19 03:09:58 +00:00
|
|
|
|
public Country Country;
|
2017-03-27 15:04:07 +00:00
|
|
|
|
|
2017-05-25 00:09:18 +00:00
|
|
|
|
public Bindable<UserStatus> Status = new Bindable<UserStatus>();
|
|
|
|
|
|
2017-04-19 07:02:18 +00:00
|
|
|
|
//public Team Team;
|
2017-03-27 15:04:07 +00:00
|
|
|
|
|
2017-04-20 10:48:53 +00:00
|
|
|
|
[JsonProperty(@"profile_colour")]
|
2017-03-27 15:04:07 +00:00
|
|
|
|
public string Colour;
|
2017-04-11 05:00:21 +00:00
|
|
|
|
|
2017-04-20 10:48:53 +00:00
|
|
|
|
[JsonProperty(@"avatar_url")]
|
2017-04-19 07:02:18 +00:00
|
|
|
|
public string AvatarUrl;
|
|
|
|
|
|
2017-04-20 10:48:53 +00:00
|
|
|
|
[JsonProperty(@"cover_url")]
|
|
|
|
|
public string CoverUrl;
|
|
|
|
|
|
|
|
|
|
//[JsonProperty(@"cover")]
|
|
|
|
|
//public UserCover Cover;
|
2017-04-19 07:02:18 +00:00
|
|
|
|
|
|
|
|
|
public class UserCover
|
|
|
|
|
{
|
2017-04-20 10:48:53 +00:00
|
|
|
|
[JsonProperty(@"custom_url")]
|
2017-04-19 07:02:18 +00:00
|
|
|
|
public string CustomUrl;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"url")]
|
|
|
|
|
public string Url;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"id")]
|
|
|
|
|
public int? Id;
|
|
|
|
|
}
|
2016-08-31 03:33:01 +00:00
|
|
|
|
}
|
|
|
|
|
}
|