using System.Threading.Tasks;
namespace JobsJobsJobs.Shared
{
///
/// The ID of a continent
///
public record ContinentId(ShortId Id)
{
///
/// Create a new continent ID
///
/// A new continent ID
public static async Task Create() => new ContinentId(await ShortId.Create());
///
/// Attempt to create a continent ID from a string
///
/// The prospective ID
/// The continent ID
/// If the string is not a valid continent ID
public static ContinentId Parse(string id) => new ContinentId(ShortId.Parse(id));
public override string ToString() => Id.ToString();
}
}