mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-09 17:54:59 +00:00
UI Applications can now request status for specific feature sets instead of full status for a device. This will hopefully cut down on the traffic and messages required to get the data for the UI.
38 lines
872 B
C#
38 lines
872 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace PepperDash.Essentials
|
|
{
|
|
/// <summary>
|
|
/// Represents a AuthorizationResponse
|
|
/// </summary>
|
|
public class AuthorizationResponse
|
|
{
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Authorized
|
|
/// </summary>
|
|
[JsonProperty("authorized")]
|
|
public bool Authorized { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Reason
|
|
/// </summary>
|
|
[JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
|
|
public string Reason { get; set; } = null;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Represents a AuthorizationRequest
|
|
/// </summary>
|
|
public class AuthorizationRequest
|
|
{
|
|
|
|
/// <summary>
|
|
/// Gets or sets the GrantCode
|
|
/// </summary>
|
|
[JsonProperty("grantCode")]
|
|
public string GrantCode { get; set; }
|
|
}
|
|
}
|