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

25 lines
635 B
C#
Raw Normal View History

2023-06-06 12:00:24 +02:00
using System.Runtime.Serialization;
2021-05-13 20:03:07 +02:00
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
{
2023-06-06 12:00:24 +02:00
/// <summary> Constructor for JSON serialization. </summary>
2022-09-06 16:08:19 +02:00
/// <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
}