/// <summary> /// Current play state information. /// </summary> /// <returns></returns> public async Task <PlayState> GetPlayStateAsync() { //<property name="PlayState" type="(sxuuuiia(ssssxsssa{ss}a{sv}v))" access="read"/> var result = await mediaPlayer.GetPropertyAsync("PlayState"); var state = result as AllJoynMessageArgStructure; return(new PlayState(state)); }
public Task <bool> GetHasEffectsAsync() { if (hasEffects == null) { if (lampDetails == null) { hasEffects = Task.FromResult(false); } else { hasEffects = lampDetails.GetPropertyAsync <bool>("HasEffects"); } } return(hasEffects); }
public override Task <bool> GetOnOffAsync() { return(switchInterface.GetPropertyAsync <bool>("Value")); }
/// <summary> /// Gets a value indicating whether the zone manager is enabled /// </summary> /// <returns>True if enabled</returns> public Task <bool> GetIsEnabledAsync() { return(zoneManager.GetPropertyAsync <bool>("Enabled")); }
/// <summary> /// Gets the version of the MCU interface /// </summary> /// <returns>The version of the interface</returns> public Task <ushort> GetVersionVersionAsync() { return(mcu.GetPropertyAsync <ushort>("Version")); }
/// <summary> /// Current relative humidity value /// </summary> /// <returns>The current relative humidity expressed in percent.</returns> public Task <double> GetCurrentValueAsync() { return(iface.GetPropertyAsync <double>("CurrentValue")); }
public Task <bool> GetIsLinkedAsync() { return(hueInterface.GetPropertyAsync <bool>("IsLinked")); }
public Task <UInt16> GetVersionVersionAsync() { return(mcu.GetPropertyAsync <UInt16>("Version")); }
public Task <UInt16> GetVersionVersionAsync() { return(zoneManager.GetPropertyAsync <UInt16>("Version")); }
public override Task <bool> GetOnOffAsync() { return(lampState.GetPropertyAsync <bool>("OnOff")); }
/// <summary> /// Indicates if the volume control is enabled. /// </summary> /// <returns></returns> public Task <bool> GetVolumeEnabledAsync() { return(volume.GetPropertyAsync <bool>("Enabled")); }
public override Task <bool> GetOnOffAsync() { return(onOffInterface.GetPropertyAsync <bool>("OnOff")); }