// Copyright (c) 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 Inputs { get; set; } = new List(); } }