mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-08 01:04:56 +00:00
93 lines
1.9 KiB
C#
93 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
|
|
namespace PepperDash.Core.WebApi.Presets
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class User
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the ExternalId
|
|
/// </summary>
|
|
public string ExternalId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the FirstName
|
|
/// </summary>
|
|
public string FirstName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the LastName
|
|
/// </summary>
|
|
public string LastName { get; set; }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class UserReceivedEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// True when user is found
|
|
/// </summary>
|
|
public bool LookupSuccess { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the ULookupSuccess
|
|
/// </summary>
|
|
public ushort ULookupSuccess { get { return (ushort)(LookupSuccess ? 1 : 0); } }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the User
|
|
/// </summary>
|
|
public User User { get; private set; }
|
|
|
|
/// <summary>
|
|
/// For Simpl+
|
|
/// </summary>
|
|
public UserReceivedEventArgs() { }
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
/// <param name="user"></param>
|
|
/// <param name="success"></param>
|
|
public UserReceivedEventArgs(User user, bool success)
|
|
{
|
|
LookupSuccess = success;
|
|
User = user;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Represents a UserAndRoomMessage
|
|
/// </summary>
|
|
public class UserAndRoomMessage
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public int UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the RoomTypeId
|
|
/// </summary>
|
|
public int RoomTypeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the PresetNumber
|
|
/// </summary>
|
|
public int PresetNumber { get; set; }
|
|
}
|
|
} |