Exemplo n.º 1
0
        public void ProcessNodes(DacpNodeDictionary nodes)
        {
            ID          = (UInt64)nodes.GetLong("msma");
            Name        = nodes.GetString("minm");
            IsActive    = nodes.GetBool("caia");
            HasVideo    = nodes.GetBool("caiv");
            HasPassword = nodes.GetBool("cahp");
            int volumeLevel = nodes.GetInt("cmvo");

            VolumeLevel = volumeLevel;

            // Set the adjusted volume level
            _bindableVolumeLevel = ((double)Client.CurrentVolumeLevel / 100) * volumeLevel;
            SendBindableVolumeLevelChanged();
        }
Exemplo n.º 2
0
 protected virtual void ProcessNodes(DacpNodeDictionary nodes)
 {
     ID           = nodes.GetInt("miid");
     PersistentID = (UInt64)nodes.GetLong("mper");
     Name         = nodes.GetString("minm");
 }