Ejemplo n.º 1
0
        /// <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);
 }
Ejemplo n.º 3
0
 public override Task <bool> GetOnOffAsync()
 {
     return(switchInterface.GetPropertyAsync <bool>("Value"));
 }
Ejemplo n.º 4
0
 /// <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"));
 }
Ejemplo n.º 5
0
 /// <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"));
 }
Ejemplo n.º 7
0
 public Task <bool> GetIsLinkedAsync()
 {
     return(hueInterface.GetPropertyAsync <bool>("IsLinked"));
 }
Ejemplo n.º 8
0
 public Task <UInt16> GetVersionVersionAsync()
 {
     return(mcu.GetPropertyAsync <UInt16>("Version"));
 }
Ejemplo n.º 9
0
 public Task <UInt16> GetVersionVersionAsync()
 {
     return(zoneManager.GetPropertyAsync <UInt16>("Version"));
 }
Ejemplo n.º 10
0
 public override Task <bool> GetOnOffAsync()
 {
     return(lampState.GetPropertyAsync <bool>("OnOff"));
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Indicates if the volume control is enabled.
 /// </summary>
 /// <returns></returns>
 public Task <bool> GetVolumeEnabledAsync()
 {
     return(volume.GetPropertyAsync <bool>("Enabled"));
 }
Ejemplo n.º 12
0
 public override Task <bool> GetOnOffAsync()
 {
     return(onOffInterface.GetPropertyAsync <bool>("OnOff"));
 }