Beispiel #1
0
        public async Task <bool> SendMenuItem(ICameraMenuItem value)
        {
            ReportAction(value);
            if (value != null)
            {
                return(await Try(async() =>
                                 await http.Get <BaseRequestResult>(new Dictionary <string, string>
                {
                    { "mode", value.Command },
                    { "type", value.CommandType },
                    { "value", value.Value }
                })));
            }

            return(false);
        }
Beispiel #2
0
 protected bool Equals(ICameraMenuItem other)
 {
     return(string.Equals(Text, other.Id));
 }