Files
BeWoPlaner/Shared/DataContracts/AppRequestDC.cs

30 lines
635 B
C#
Raw Normal View History

2024-10-25 17:30:27 +02:00
using System;
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
2024-10-25 17:30:27 +02:00
{
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
[DataMember] public string Tenant { get; set; }
[DataMember] public RequestType Type { get; private set; }
2024-10-25 17:30:27 +02:00
}
}