using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Essentials.Core
{
///
/// Represents a FeedbackEventArgs
///
public class FeedbackEventArgs : EventArgs
{
///
/// Gets or sets the BoolValue
///
public bool BoolValue { get; private set; }
///
/// Gets or sets the IntValue
///
public int IntValue { get; private set; }
public ushort UShortValue
{
get
{
return (ushort)IntValue;
}
}
///
/// Gets or sets the StringValue
///
public string StringValue { get; private set; }
///
/// Gets or sets the Type
///
public eFeedbackEventType Type { get; private set; }
public FeedbackEventArgs(bool value)
{
BoolValue = value;
Type = eFeedbackEventType.TypeBool;
}
public FeedbackEventArgs(int value)
{
IntValue = value;
Type = eFeedbackEventType.TypeInt;
}
public FeedbackEventArgs(string value)
{
StringValue = value;
Type = eFeedbackEventType.TypeString;
}
}
///
/// Enumeration of eFeedbackEventType values
///
public enum eFeedbackEventType
{
TypeBool,
TypeInt,
TypeString
}
}