mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-23 23:56:26 +01:00
39 lines
1 KiB
C#
39 lines
1 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
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="p_eValue">Unused value.</param>
|
|
[JsonConstructor]
|
|
private StateAvailableInfo (InUseStateEnum p_eValue) : base(InUseStateEnum.Disposable)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the info that state is disposable.
|
|
/// Setter exists only for serialization purposes.
|
|
/// </summary>
|
|
public override InUseStateEnum Value
|
|
{
|
|
get
|
|
{
|
|
return InUseStateEnum.Disposable;
|
|
}
|
|
}
|
|
}
|
|
}
|