private static void UpdateGroupName(LifxNetwork network, BulbGroup group, IBulb bulb)
        {
            var command = (SetTagLabels)PacketFactory.GetCommand(CommandType.SetTagLabels);

            command.Init(group.Bitmask, Encoding.UTF8.GetBytes(group.Name));
            network.SendCommand(bulb, command);
        }
Ejemplo n.º 2
0
 public void Remove(BulbGroup group)
 {
     lock (_groupCollectionLock)
     {
         _groups.Remove(group.Bitmask);
     }
 }
Ejemplo n.º 3
0
        private BulbGroup CreateGroup(ulong bitmask)
        {
            var group = new BulbGroup(bitmask);

            _groups.Add(group.Bitmask, group);
            OnBulbGroupCollectionChanged();
            return(group);
        }
Ejemplo n.º 4
0
 private bool Equals(BulbGroup other)
 {
     return(_bitmask == other._bitmask);
 }