public ChannelTreeItem(ChannelListEntry value, ChannelListEntry parent)
 {
     Channel = value;
     ParentChannel = ParentChannel;
     Children = new List<ChannelTreeItem>();
     Clients = new List<ClientListEntry>();
 }
        public static ChannelListEntry Parse(CommandParameterGroup currrentParameterGroup, CommandParameterGroup firstParameterGroup)
        {
            if (currrentParameterGroup == null)
                throw new ArgumentNullException("currrentParameterGroup");

            ChannelListEntry result = new ChannelListEntry();
            result.FillFrom(currrentParameterGroup, firstParameterGroup);
            result.NeededSubscribePower = currrentParameterGroup.GetParameterValue<uint>("channel_needed_subscribe_power");
            result.TotalClientsFamily = currrentParameterGroup.GetParameterValue<int?>("total_clients_family");

            return result;
        }
Beispiel #3
0
        public static ChannelListEntry Parse(CommandParameterGroup currrentParameterGroup, CommandParameterGroup firstParameterGroup)
        {
            if (currrentParameterGroup == null)
            {
                throw new ArgumentNullException("currrentParameterGroup");
            }

            ChannelListEntry result = new ChannelListEntry();

            result.FillFrom(currrentParameterGroup, firstParameterGroup);
            result.NeededSubscribePower = currrentParameterGroup.GetParameterValue <uint>("channel_needed_subscribe_power");
            result.TotalClientsFamily   = currrentParameterGroup.GetParameterValue <int?>("total_clients_family");

            return(result);
        }