2022-08-30 15:42:25 +02:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using Newtonsoft.Json;
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
|
|
|
|
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>
|
2022-08-30 15:42:25 +02:00
|
|
|
|
public StateAvailableInfo() : base(InUseStateEnum.Disposable) { }
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
|
|
|
|
/// <summary> Constructor for Json serialization. </summary>
|
2022-08-30 15:42:25 +02:00
|
|
|
|
/// <param name="value">Unused value.</param>
|
2021-05-13 20:03:07 +02:00
|
|
|
|
[JsonConstructor]
|
2022-08-30 15:42:25 +02:00
|
|
|
|
private StateAvailableInfo(InUseStateEnum value) : base(InUseStateEnum.Disposable) { }
|
2021-05-13 20:03:07 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the info that state is disposable.
|
|
|
|
|
/// Setter exists only for serialization purposes.
|
|
|
|
|
/// </summary>
|
2022-08-30 15:42:25 +02:00
|
|
|
|
public override InUseStateEnum Value => InUseStateEnum.Disposable;
|
2021-05-13 20:03:07 +02:00
|
|
|
|
}
|
|
|
|
|
}
|