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();
            }
        }
    }
}