Files
BeWoPlaner/Shared/DataContracts/AppRequestDC.cs

33 lines
726 B
C#
Raw Normal View History

2025-01-17 12:17:44 +01:00
using Newtonsoft.Json;
using System;
2024-10-25 17:30:27 +02:00
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace BS.Shared.DataContracts
{
/// <summary>
/// Kann per RequestSender gesendet werden und als ResponseDC empfangen wird.
/// </summary>
[DataContract]
public abstract class AppRequestDC : IDataContract
{
2024-10-28 15:48:18 +01:00
public AppRequestDC(RequestType type)
2024-10-25 17:30:27 +02:00
{
Type = type;
2024-10-28 15:48:18 +01:00
}
public AppRequestDC(RequestType type, string tenant) : this(type)
{
2024-10-25 17:30:27 +02:00
Tenant = tenant;
}
2024-10-28 15:48:18 +01:00
2025-01-17 12:17:44 +01:00
[JsonProperty("tenant")]
2024-10-28 15:48:18 +01:00
[DataMember] public string Tenant { get; set; }
2025-01-17 12:17:44 +01:00
[JsonProperty("type")]
[DataMember] public RequestType Type { get; private set; }
2024-10-25 17:30:27 +02:00
}
}