This repository has been archived on 2020-12-20. You can view files and clone it, but cannot push or open issues or pull requests.
aurora-sharp-desktop/Aurora/Models/PartyMember.cs
2020-02-02 16:49:01 -05:00

22 lines
456 B
C#

using System;
namespace Aurora.Proto.Party
{
/// <summary>
/// Partial PartyMember class with a constructor that generates a new id
/// </summary>
public partial class Member
{
public Member(string id)
{
if (!string.IsNullOrWhiteSpace(id))
{
Name = id;
}
else
{
Name = Guid.NewGuid().ToString();
}
}
}
}