using System.Runtime.Serialization;
namespace ShareeBike.Model.State
{
///
/// Base type for serialization purposes.
///
[DataContract]
[KnownType(typeof(StateFeedbackPendingInfo))]
[KnownType(typeof(StateAvailableInfo))]
[KnownType(typeof(StateRequestedInfo))]
[KnownType(typeof(StateOccupiedInfo))]
public abstract class BaseState
{
/// Constructor for JSON serialization.
/// State value.
protected BaseState(InUseStateEnum value) { }
///
/// Holds the state value.
///
public abstract InUseStateEnum Value { get; }
}
}