private static string MapNameError(NameError error) { if (error is EmptyName) { return(ErrorsMessages.EmptyNameError); } if (error is TooLongName) { return(ErrorsMessages.TooLongNameError); } return(ErrorsMessages.UnknownError); }
/// <summary> /// Initializes a new instance of the <see cref="PlayerNameChangeFailed"/> class. /// </summary> /// <param name="Device">The device.</param> public PlayerNameChangeFailed(Device Device, NameError Error) : base(Device) { this.Identifier = 27002; this.Error = Error; }