using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace BS.Shared.DataContracts { /// /// Kann per RequestSender gesendet werden und als ResponseDC empfangen wird. /// [DataContract] public abstract class AppRequestDC : IDataContract { public AppRequestDC(RequestType type) { Type = type; } public AppRequestDC(RequestType type, string tenant) : this(type) { Tenant = tenant; } [JsonProperty("tenant")] [DataMember] public string Tenant { get; set; } [JsonProperty("type")] [DataMember] public RequestType Type { get; private set; } } }