mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-14 14:26:28 +01:00
24 lines
638 B
C#
24 lines
638 B
C#
using System.Runtime.Serialization;
|
|
|
|
namespace TINK.Model.State
|
|
{
|
|
/// <summary>
|
|
/// Base type for serialization purposes.
|
|
/// </summary>
|
|
[DataContract]
|
|
[KnownType(typeof(StateFeedbackPendingInfo))]
|
|
[KnownType(typeof(StateAvailableInfo))]
|
|
[KnownType(typeof(StateRequestedInfo))]
|
|
[KnownType(typeof(StateOccupiedInfo))]
|
|
public abstract class BaseState
|
|
{
|
|
/// <summary> Constructor for Json serialization. </summary>
|
|
/// <param name="value">State value.</param>
|
|
protected BaseState(InUseStateEnum value) { }
|
|
|
|
/// <summary>
|
|
/// Holds the state value.
|
|
/// </summary>
|
|
public abstract InUseStateEnum Value { get; }
|
|
}
|
|
}
|