internal NError(AuthenticateResponse.Types.Error error) { if (Enum.IsDefined(typeof(ErrorCode), Convert.ToUInt32(error.Code + 1))) { Code = (ErrorCode)Convert.ToUInt32(error.Code + 1); } else { Code = ErrorCode.Unknown; } Message = error.Message; }
internal NError(AuthenticateResponse.Types.Error error) { Message = error.Reason; }