2019-01-13 12:54:44 -07:00
|
|
|
using System;
|
2020-08-20 12:04:57 -07:00
|
|
|
using System.Collections.Generic;
|
2016-10-29 15:22:20 -07:00
|
|
|
|
2016-10-29 15:34:54 -07:00
|
|
|
namespace Emby.Dlna.Common
|
2016-10-29 15:22:20 -07:00
|
|
|
{
|
2020-09-13 05:49:11 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Defines the <see cref="StateVariable" />.
|
|
|
|
/// </summary>
|
2016-10-29 15:22:20 -07:00
|
|
|
public class StateVariable
|
|
|
|
{
|
2020-09-13 05:49:11 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the name of the state variable.
|
|
|
|
/// </summary>
|
|
|
|
public string Name { get; set; } = string.Empty;
|
2016-10-29 15:22:20 -07:00
|
|
|
|
2020-09-13 05:49:11 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the data type of the state variable.
|
|
|
|
/// </summary>
|
|
|
|
public string DataType { get; set; } = string.Empty;
|
2016-10-29 15:22:20 -07:00
|
|
|
|
2020-09-13 05:49:11 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether it sends events.
|
|
|
|
/// </summary>
|
2016-10-29 15:22:20 -07:00
|
|
|
public bool SendsEvents { get; set; }
|
|
|
|
|
2020-09-13 05:49:11 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the allowed values range.
|
|
|
|
/// </summary>
|
|
|
|
public IReadOnlyList<string> AllowedValues { get; set; } = Array.Empty<string>();
|
2016-10-29 15:22:20 -07:00
|
|
|
|
2020-01-22 13:00:07 -07:00
|
|
|
/// <inheritdoc />
|
2020-09-13 05:49:11 -07:00
|
|
|
public override string ToString() => Name;
|
2016-10-29 15:22:20 -07:00
|
|
|
}
|
|
|
|
}
|