using System;
namespace PepperDash.Core.WebApi.Presets
{
///
/// Represents a Preset
///
public class Preset
{
///
/// ID of preset
///
public int Id { get; set; }
///
/// Gets or sets the UserId
///
public int UserId { get; set; }
///
/// Gets or sets the RoomTypeId
///
public int RoomTypeId { get; set; }
///
/// Gets or sets the PresetName
///
public string PresetName { get; set; }
///
/// Gets or sets the PresetNumber
///
public int PresetNumber { get; set; }
///
/// Gets or sets the Data
///
public string Data { get; set; }
///
/// Constructor
///
public Preset()
{
PresetName = "";
PresetNumber = 1;
Data = "{}";
}
}
///
/// Represents a PresetReceivedEventArgs
///
public class PresetReceivedEventArgs : EventArgs
{
///
/// True when the preset 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 Preset
///
public Preset Preset { get; private set; }
///
/// For Simpl+
///
public PresetReceivedEventArgs() { }
///
/// Constructor
///
///
///
public PresetReceivedEventArgs(Preset preset, bool success)
{
LookupSuccess = success;
Preset = preset;
}
}
}