2019-01-24 08:43:03 +00:00
|
|
|
|
// 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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-12-01 00:52:41 +00:00
|
|
|
|
using System;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Users
|
|
|
|
|
{
|
2019-12-01 00:52:41 +00:00
|
|
|
|
public class Country : IEquatable<Country>
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of this country.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(@"name")]
|
|
|
|
|
public string FullName;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Two-letter flag acronym (ISO 3166 standard)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(@"code")]
|
|
|
|
|
public string FlagName;
|
2019-12-01 00:52:41 +00:00
|
|
|
|
|
2019-12-01 01:09:45 +00:00
|
|
|
|
public bool Equals(Country other) => FlagName == other?.FlagName;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|