sharee.bike-App/TINKLib/Model/State/BaseState.cs

25 lines
638 B
C#
Raw Normal View History

2021-05-13 20:03:07 +02:00
using System.Runtime.Serialization;
namespace TINK.Model.State
{
2022-09-06 16:08:19 +02:00
/// <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) { }
2022-08-30 15:42:25 +02:00
2022-09-06 16:08:19 +02:00
/// <summary>
/// Holds the state value.
/// </summary>
public abstract InUseStateEnum Value { get; }
}
2021-05-13 20:03:07 +02:00
}