Files
Essentials/src/PepperDash.Essentials.MobileControl/AuthorizationResponse.cs
Andrew Welker 9c9eaea928 feat: unique status requests for messengers
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.
2025-09-23 10:55:16 -05:00

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; }
}
}