/// <summary> /// Access property from its enum value /// </summary> /// <param name="property"></param> /// <returns></returns> public object this[PROPERTIES property] { get { return(this[property.ToString()]); } set { this[property.ToString()] = value; } }
/// <summary> /// Get a single property value asynchronously /// </summary> /// <param name="prop"></param> /// <returns></returns> public async Task <object> GetProp(PROPERTIES prop) { CommandResult <List <string> > result = await ExecuteCommandWithResponse <List <string> >( method : METHODS.GetProp, parameters : new List <object>() { prop.ToString() }); return(result?.Result?.Count == 1 ? result.Result[0] : null); }