sharee.bike-App/TINKLib/Model/State/StateAvailableInfo.cs
Anja Müller-Meißner 0468955d49 Version 3.0.338
2022-09-08 09:55:14 +02:00

28 lines
837 B
C#

using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace TINK.Model.State
{
/// <summary>
/// Represents the state available.
/// </summary>
[DataContract]
public sealed class StateAvailableInfo : BaseState, IBaseState
{
/// <summary>
/// Constructs state info object representing state available.
/// </summary>
public StateAvailableInfo() : base(InUseStateEnum.Disposable) { }
/// <summary> Constructor for Json serialization. </summary>
/// <param name="value">Unused value.</param>
[JsonConstructor]
private StateAvailableInfo(InUseStateEnum value) : base(InUseStateEnum.Disposable) { }
/// <summary>
/// Gets the info that state is disposable.
/// Setter exists only for serialization purposes.
/// </summary>
public override InUseStateEnum Value => InUseStateEnum.Disposable;
}
}