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
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2019-12-01 00:52:41 +00:00
|
|
|
|
using System;
|
2017-04-19 07:02:18 +00:00
|
|
|
|
using Newtonsoft.Json;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-03-13 12:33:25 +00:00
|
|
|
|
namespace osu.Game.Users
|
|
|
|
|
{
|
2019-12-01 00:52:41 +00:00
|
|
|
|
public class Country : IEquatable<Country>
|
2017-03-13 12:33:25 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-03-17 21:16:59 +00:00
|
|
|
|
/// The name of this country.
|
2017-03-13 12:33:25 +00:00
|
|
|
|
/// </summary>
|
2017-04-19 07:02:18 +00:00
|
|
|
|
[JsonProperty(@"name")]
|
2017-03-13 12:33:25 +00:00
|
|
|
|
public string FullName;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-03-13 12:33:25 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Two-letter flag acronym (ISO 3166 standard)
|
|
|
|
|
/// </summary>
|
2017-04-19 07:02:18 +00:00
|
|
|
|
[JsonProperty(@"code")]
|
2017-03-13 12:33:25 +00:00
|
|
|
|
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;
|
2017-03-13 12:33:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|