mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 02:37:25 +08:00
26 lines
667 B
C#
26 lines
667 B
C#
// 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.
|
|
|
|
using System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace osu.Game.Users
|
|
{
|
|
public class Country : IEquatable<Country>
|
|
{
|
|
/// <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;
|
|
|
|
public bool Equals(Country other) => FlagName == other?.FlagName;
|
|
}
|
|
}
|