aurora/aurora-sharp-desktop/Aurora/Models/PartyMember.cs

22 lines
456 B
C#
Raw Permalink Normal View History

2021-03-06 04:10:12 +00:00
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();
}
}
}
}