public string GetValueString()
 {
     if (ResponseValue is IRangeValue rv)
     {
         return(rv.StringValue);
     }
     else
     {
         return(ResponseValue?.ToString());
     }
 }
        public string GetValueJson()
        {
            string parameterValue;

            if (ResponseValue is IRangeValue rv)
            {
                parameterValue = rv.StringJsonValue;
            }
            else
            {
                parameterValue = ResponseValue?.ToString();
            }

            return($"{{ \"Command\": \"{ResponseToCommand}\", " +
                   $"\"Parameter\": \"{parameterValue}\" }} ");
        }
            public static string ToString(ResponseValue status)
            {
                switch (status)
                {
                case ResponseValue.Allowed: return(JsonAllowed);

                case ResponseValue.Scheduled: return(JsonScheduled);

                case ResponseValue.Disabled: return(JsonDisabled);

                case ResponseValue.InActiveHours: return(JsonInActiveHours);

                case ResponseValue.RejectedByApp: return(JsonRejectedByApp);
                }
                return(status.ToString());
            }