mirror of
https://github.com/WowLegacyCore/HermesProxy
synced 2026-08-14 20:32:05 -04:00
27 lines
862 B
C#
27 lines
862 B
C#
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
|
|
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Framework.Web
|
|
{
|
|
[DataContract]
|
|
public class LogonData
|
|
{
|
|
public string this[string inputId] => Inputs.SingleOrDefault(i => i.Id == inputId)?.Value;
|
|
|
|
[DataMember(Name = "version")]
|
|
public string Version { get; set; }
|
|
|
|
[DataMember(Name = "program_id")]
|
|
public string Program { get; set; }
|
|
|
|
[DataMember(Name = "platform_id")]
|
|
public string Platform { get; set; }
|
|
|
|
[DataMember(Name = "inputs")]
|
|
public List<FormInputValue> Inputs { get; set; } = new List<FormInputValue>();
|
|
}
|
|
}
|