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