using System; using System.Collections.Generic; using System.Linq; using System.Text; using Crestron.SimplSharp; namespace PepperDash.Core.WebApi.Presets { /// /// /// public class User { /// /// /// public int Id { get; set; } /// /// Gets or sets the ExternalId /// public string ExternalId { get; set; } /// /// Gets or sets the FirstName /// public string FirstName { get; set; } /// /// Gets or sets the LastName /// public string LastName { get; set; } } /// /// /// public class UserReceivedEventArgs : EventArgs { /// /// True when user is found /// public bool LookupSuccess { get; private set; } /// /// Gets or sets the ULookupSuccess /// public ushort ULookupSuccess { get { return (ushort)(LookupSuccess ? 1 : 0); } } /// /// Gets or sets the User /// public User User { get; private set; } /// /// For Simpl+ /// public UserReceivedEventArgs() { } /// /// Constructor /// /// /// public UserReceivedEventArgs(User user, bool success) { LookupSuccess = success; User = user; } } /// /// Represents a UserAndRoomMessage /// public class UserAndRoomMessage { /// /// /// public int UserId { get; set; } /// /// Gets or sets the RoomTypeId /// public int RoomTypeId { get; set; } /// /// Gets or sets the PresetNumber /// public int PresetNumber { get; set; } } }