Beispiel #1
0
 /// <summary>
 /// Returns all clients which are connected to the server
 /// </summary>
 public List <TS3Models.Client> GetClientList()
 {
     if (IsConnected())
     {
         ts3Connection.WriteLine("clientlist");
         TS3Models.Result        result  = TS3Helper.ParseResult(ReadAll(), true);
         List <TS3Models.Client> clients = new List <TS3Models.Client>();
         foreach (Dictionary <string, string> res in result.ResultsList)
         {
             clients.Add(new TS3Models.Client()
             {
                 Result  = result,
                 Channel = new TS3Models.Channel()
                 {
                     CId = Convert.ToInt32(result.GetResultByList(res, "cid"))
                 },
                 ClId             = Convert.ToInt32(result.GetResultByList(res, "clid")),
                 ClientDatabaseId = Convert.ToInt32(result.GetResultByList(res, "client_database_id")),
                 ClientNickname   = result.GetResultByList(res, "client_nickname"),
                 ClientType       = Convert.ToInt32(result.GetResultByList(res, "client_type"))
             });
         }
         return(clients);
     }
     return(null);
 }
Beispiel #2
0
 /// <summary>
 /// List all client tabs
 /// </summary>
 public List <int> ServerConnectionHandlerList()
 {
     if (IsConnected())
     {
         string query = "serverconnectionhandlerlist";
         ts3Connection.WriteLine(query);
         TS3Models.Result result = TS3Helper.ParseResult(ReadAll(), true);
         if (result != null && result.ErrorId == 0)
         {
             List <int> handlers = new List <int>();
             foreach (Dictionary <string, string> res in result.ResultsList)
             {
                 handlers.Add(Convert.ToInt32(result.GetResultByList(res, "schandlerid")));
             }
             return(handlers);
         }
     }
     return(null);
 }
Beispiel #3
0
     public Client FillWithResult(Result result, Dictionary <string, string> list)
     {
         if (result.GetResultByList(list, ClientProperties.client_servergroups.ToString()) != null)
         {
             List <TS3Models.ServerGroup> serverGroups = new List <TS3Models.ServerGroup>();
             List <string> sepList = TS3Helper.GetSeperatedList(result.GetResultByList(list, ClientProperties.client_servergroups.ToString()));
             if (sepList != null && sepList.Count != 0)
             {
                 foreach (string groupId in sepList)
                 {
                     serverGroups.Add(new TS3Models.ServerGroup()
                     {
                         SgId = Convert.ToInt32(groupId)
                     });
                 }
             }
             this.ClientServerGroups = serverGroups;
         }
         if (result.GetResultByList(list, ClientProperties.client_badges.ToString()) != null)
         {
             Dictionary <string, string> paramList = TS3Helper.GetSeperatedParamList(result.GetResultByList(list, ClientProperties.client_badges.ToString()));
             List <TS3Models.BadgeTypes> badges    = new List <TS3Models.BadgeTypes>();
             if (paramList != null && paramList.Count != 0)
             {
                 foreach (KeyValuePair <string, string> param in paramList)
                 {
                     TS3Models.BadgeTypes badge;
                     if (Enum.TryParse <TS3Models.BadgeTypes>(param.Key, out badge))
                     {
                         if (Convert.ToBoolean(Convert.ToInt32(param.Value)))
                         {
                             badges.Add(badge);
                         }
                     }
                 }
             }
             this.ClientBadges = badges;
         }
         if (result.GetResultByList(list, ClientProperties.clid.ToString()) != null)
         {
             this.ClId = Convert.ToInt32(result.GetResultByList(list, ClientProperties.clid.ToString()));
         }
         if (result.GetResultByList(list, ClientProperties.client_unique_identifier.ToString()) != null)
         {
             this.ClientUniqueIdentifier = result.GetResultByList(list, ClientProperties.client_unique_identifier.ToString());
         }
         if (result.GetResultByList(list, ClientProperties.client_nickname.ToString()) != null)
         {
             this.ClientNickname = result.GetResultByList(list, ClientProperties.client_nickname.ToString());
         }
         if (result.GetResultByList(list, ClientProperties.client_input_muted.ToString()) != null)
         {
             this.ClientInputMuted = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_input_muted.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_output_muted.ToString()) != null)
         {
             this.ClientOutputMuted = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_output_muted.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_outputonly_muted.ToString()) != null)
         {
             this.ClientOutputOnlyMuted = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_outputonly_muted.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_input_hardware.ToString()) != null)
         {
             this.ClientInputHardware = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_input_hardware.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_output_hardware.ToString()) != null)
         {
             this.ClientOutputHardware = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_output_hardware.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_meta_data.ToString()) != null)
         {
             this.ClientMetaData = result.GetResultByList(list, ClientProperties.client_meta_data.ToString());
         }
         if (result.GetResultByList(list, ClientProperties.client_is_recording.ToString()) != null)
         {
             this.ClientIsRecording = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_is_recording.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_database_id.ToString()) != null)
         {
             this.ClientDatabaseId = Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_database_id.ToString()));
         }
         if (result.GetResultByList(list, ClientProperties.client_channel_group_id.ToString()) != null)
         {
             this.ClientChannelGroup = new TS3Models.ChannelGroup()
             {
                 CgId = Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_channel_group_id.ToString()))
             }
         }
         ;
         if (result.GetResultByList(list, ClientProperties.client_away.ToString()) != null)
         {
             this.ClientAway = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_away.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_away_message.ToString()) != null)
         {
             this.ClientAwayMessage = result.GetResultByList(list, ClientProperties.client_away_message.ToString());
         }
         if (result.GetResultByList(list, ClientProperties.client_type.ToString()) != null)
         {
             this.ClientType = Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_type.ToString()));
         }
         if (result.GetResultByList(list, ClientProperties.client_flag_avatar.ToString()) != null)
         {
             this.ClientFlagAvatar = result.GetResultByList(list, ClientProperties.client_flag_avatar.ToString());
         }
         if (result.GetResultByList(list, ClientProperties.client_talk_power.ToString()) != null)
         {
             this.ClientTalkPower = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_talk_power.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_talk_request.ToString()) != null)
         {
             this.ClientTalkRequest = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_talk_request.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_talk_request_msg.ToString()) != null)
         {
             this.ClientTalkRequestMsg = result.GetResultByList(list, ClientProperties.client_talk_request_msg.ToString());
         }
         if (result.GetResultByList(list, ClientProperties.client_description.ToString()) != null)
         {
             this.ClientDescription = result.GetResultByList(list, ClientProperties.client_description.ToString());
         }
         if (result.GetResultByList(list, ClientProperties.client_is_talker.ToString()) != null)
         {
             this.ClientIsTalker = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_is_talker.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_is_priority_speaker.ToString()) != null)
         {
             this.ClientIsPrioritySpeaker = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_is_priority_speaker.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_unread_messages.ToString()) != null)
         {
             this.ClientUnreadMessages = Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_unread_messages.ToString()));
         }
         if (result.GetResultByList(list, ClientProperties.client_nickname_phonetic.ToString()) != null)
         {
             this.ClientNicknamePhonetic = result.GetResultByList(list, ClientProperties.client_nickname_phonetic.ToString());
         }
         if (result.GetResultByList(list, ClientProperties.client_needed_serverquery_view_power.ToString()) != null)
         {
             this.ClientNeededServerqueryViewPower = Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_needed_serverquery_view_power.ToString()));
         }
         if (result.GetResultByList(list, ClientProperties.client_icon_id.ToString()) != null)
         {
             this.ClientIconId = Convert.ToUInt64(result.GetResultByList(list, ClientProperties.client_icon_id.ToString()));
         }
         if (result.GetResultByList(list, ClientProperties.client_is_channel_commander.ToString()) != null)
         {
             this.ClientIsChannelCommander = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_is_channel_commander.ToString())));
         }
         if (result.GetResultByList(list, ClientProperties.client_country.ToString()) != null)
         {
             this.ClientCountry = result.GetResultByList(list, ClientProperties.client_country.ToString());
         }
         if (result.GetResultByList(list, ClientProperties.client_channel_group_inherited_channel_id.ToString()) != null)
         {
             this.ClientChannelGroupInheritedChannelId = Convert.ToInt32(result.GetResultByList(list, ClientProperties.client_channel_group_inherited_channel_id.ToString()));
         }
         this.Result = result;
         return(this);
     }
 }
        private void ParseNotification(TS3Models.Notifications notification, TS3Models.Result result)
        {
            switch (notification)
            {
                #region Client
            case TS3Models.Notifications.notifytextmessage:
                if (OnTextMessage != null)
                {
                    OnTextMessage(new TS3Models.TextMessage()
                    {
                        Result     = result,
                        TargetMode = (TS3Models.TextMessageTargetMode)Convert.ToInt32(result.GetFirstResult("targetmode")),
                        Msg        = result.GetFirstResult("msg"),
                        Target     = Convert.ToInt32(result.GetFirstResult("target")),
                        Invoker    = new TS3Models.Client()
                        {
                            ClId                   = Convert.ToInt32(result.GetFirstResult("invokerid")),
                            ClientNickname         = result.GetFirstResult("invokername"),
                            ClientUniqueIdentifier = result.GetFirstResult("invokeruid"),
                        }
                    });
                }
                break;

            case TS3Models.Notifications.notifyclientpoke:
                if (OnClientPoke != null)
                {
                    OnClientPoke(new TS3Models.ClientPoke()
                    {
                        Result  = result,
                        Msg     = result.GetFirstResult("msg"),
                        Invoker = new TS3Models.Client()
                        {
                            ClId                   = Convert.ToInt32(result.GetFirstResult("invokerid")),
                            ClientNickname         = result.GetFirstResult("invokername"),
                            ClientUniqueIdentifier = result.GetFirstResult("invokeruid"),
                        }
                    });
                }
                break;

            case TS3Models.Notifications.notifycliententerview:
                if (OnClientEnterView != null)
                {
                    OnClientEnterView(new TS3Models.ClientEnterView()
                    {
                        Result = result,
                        CfId   = Convert.ToInt32(result.GetFirstResult("cfid")),
                        CtId   = Convert.ToInt32(result.GetFirstResult("ctid")),
                        Reason = (TS3Models.ReasonIdentifier)Convert.ToInt32(result.GetFirstResult("reasonid")),
                        Client = new TS3Models.Client().FillWithResult(result)
                    });
                }
                break;

            case TS3Models.Notifications.notifyclientleftview:
                if (OnClientLeftView != null)
                {
                    OnClientLeftView(new TS3Models.ClientLeftView()
                    {
                        Result  = result,
                        CfId    = Convert.ToInt32(result.GetFirstResult("cfid")),
                        CtId    = Convert.ToInt32(result.GetFirstResult("ctid")),
                        Reason  = (TS3Models.ReasonIdentifier)Convert.ToInt32(result.GetFirstResult("reasonid")),
                        Invoker = new TS3Models.Client()
                        {
                            ClId                   = Convert.ToInt32(result.GetFirstResult("invokerid")),
                            ClientNickname         = result.GetFirstResult("invokername"),
                            ClientUniqueIdentifier = result.GetFirstResult("invokeruid"),
                        },
                        ReasonMsg = result.GetFirstResult("reasonmsg"),
                        BanTime   = Convert.ToInt32(result.GetFirstResult("bantime")),
                        ClId      = Convert.ToInt32(result.GetFirstResult("clid"))
                    });
                }
                break;

            case TS3Models.Notifications.notifyclientmoved:
                if (OnClientMoved != null)
                {
                    List <TS3Models.Client> clients = new List <TS3Models.Client>();
                    foreach (Dictionary <string, string> list in result.ResultsList)
                    {
                        string id = result.GetResultByList(list, "clid");
                        if (!string.IsNullOrEmpty(id))
                        {
                            clients.Add(new TS3Models.Client()
                            {
                                ClId = Convert.ToInt32(id)
                            });
                        }
                    }

                    OnClientMoved(new TS3Models.ClientMoved()
                    {
                        Result  = result,
                        Channel = new TS3Models.Channel()
                        {
                            CId = Convert.ToInt32(result.GetFirstResult("ctid"))
                        },
                        Reason  = (TS3Models.ReasonIdentifier)Convert.ToInt32(result.GetFirstResult("reasonid")),
                        Invoker = new TS3Models.Client()
                        {
                            ClId                   = Convert.ToInt32(result.GetFirstResult("invokerid")),
                            ClientNickname         = result.GetFirstResult("invokername"),
                            ClientUniqueIdentifier = result.GetFirstResult("invokeruid"),
                        },
                        Clients = clients
                    });
                }
                break;

                #endregion
                #region Channel
            case TS3Models.Notifications.notifychannelmoved:
                if (OnChannelMoved != null)
                {
                    OnChannelMoved(new TS3Models.ChannelMoved()
                    {
                        Result  = result,
                        Reason  = (TS3Models.ReasonIdentifier)Convert.ToInt32(result.GetFirstResult("reasonid")),
                        Invoker = new TS3Models.Client()
                        {
                            ClId                   = Convert.ToInt32(result.GetFirstResult("invokerid")),
                            ClientNickname         = result.GetFirstResult("invokername"),
                            ClientUniqueIdentifier = result.GetFirstResult("invokeruid"),
                        },
                        Channel = new TS3Models.Channel().FillWithResult(result)
                    });
                }
                break;

            case TS3Models.Notifications.notifychanneledited:
                if (OnChannelEdited != null)
                {
                    OnChannelEdited(new TS3Models.ChannelEdited()
                    {
                        Result  = result,
                        Reason  = (TS3Models.ReasonIdentifier)Convert.ToInt32(result.GetFirstResult("reasonid")),
                        Invoker = new TS3Models.Client()
                        {
                            ClId                   = Convert.ToInt32(result.GetFirstResult("invokerid")),
                            ClientNickname         = result.GetFirstResult("invokername"),
                            ClientUniqueIdentifier = result.GetFirstResult("invokeruid"),
                        },
                        Channel = new TS3Models.Channel().FillWithResult(result)
                    });
                }
                break;

            case TS3Models.Notifications.notifychannelcreated:
                if (OnChannelCreated != null)
                {
                    OnChannelCreated(new TS3Models.ChannelCreated()
                    {
                        Result  = result,
                        Invoker = new TS3Models.Client()
                        {
                            ClId                   = Convert.ToInt32(result.GetFirstResult("invokerid")),
                            ClientNickname         = result.GetFirstResult("invokername"),
                            ClientUniqueIdentifier = result.GetFirstResult("invokeruid"),
                        },
                        Channel = new TS3Models.Channel().FillWithResult(result)
                    });
                }
                break;

            case TS3Models.Notifications.notifychanneldeleted:
                if (OnChannelDeleted != null)
                {
                    OnChannelDeleted(new TS3Models.ChannelDeleted()
                    {
                        Result  = result,
                        Invoker = new TS3Models.Client()
                        {
                            ClId                   = Convert.ToInt32(result.GetFirstResult("invokerid")),
                            ClientNickname         = result.GetFirstResult("invokername"),
                            ClientUniqueIdentifier = result.GetFirstResult("invokeruid"),
                        },
                        Channel = new TS3Models.Channel().FillWithResult(result)
                    });
                }
                break;

                #endregion
                #region Server
            case TS3Models.Notifications.notifyserveredited:
                if (OnServerEdited != null)
                {
                    OnServerEdited(new TS3Models.ServerEdited()
                    {
                        Result  = result,
                        Reason  = (TS3Models.ReasonIdentifier)Convert.ToInt32(result.GetFirstResult("reasonid")),
                        Invoker = new TS3Models.Client()
                        {
                            ClId                   = Convert.ToInt32(result.GetFirstResult("invokerid")),
                            ClientNickname         = result.GetFirstResult("invokername"),
                            ClientUniqueIdentifier = result.GetFirstResult("invokeruid"),
                        },
                        VirtualServer = new TS3Models.VirtualServer().FillWithResult(result)
                    });
                }
                break;

            case TS3Models.Notifications.notifyservergrouplist:
                if (OnServerGroupList != null)
                {
                    List <TS3Models.ServerGroup> serverGroups = new List <TS3Models.ServerGroup>();
                    foreach (Dictionary <string, string> res in result.ResultsList)
                    {
                        serverGroups.Add(new TS3Models.ServerGroup().FillWithResult(result, res));
                    }
                    OnServerGroupList(serverGroups);
                }
                break;
                #endregion
            }
        }
        public VirtualServer FillWithResult(Result result, Dictionary <string, string> list)
        {
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_unique_identifier.ToString()) != null)
            {
                this.VirtualServerUniqueIdentifier = result.GetResultByList(list, VirtualServerProperties.virtualserver_unique_identifier.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_name.ToString()) != null)
            {
                this.VirtualServerName = result.GetResultByList(list, VirtualServerProperties.virtualserver_name.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_welcomemessage.ToString()) != null)
            {
                this.VirtualServerWelcomemessage = result.GetResultByList(list, VirtualServerProperties.virtualserver_welcomemessage.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_platform.ToString()) != null)
            {
                this.VirtualServerPlatform = result.GetResultByList(list, VirtualServerProperties.virtualserver_platform.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_version.ToString()) != null)
            {
                this.VirtualServerVersion = result.GetResultByList(list, VirtualServerProperties.virtualserver_version.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_maxclients.ToString()) != null)
            {
                this.VirtualServerMaxclients = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_maxclients.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_password.ToString()) != null)
            {
                this.VirtualServerPassword = result.GetResultByList(list, VirtualServerProperties.virtualserver_password.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_clientsonline.ToString()) != null)
            {
                this.VirtualServerClientsonline = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_clientsonline.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_channelsonline.ToString()) != null)
            {
                this.VirtualServerChannelsonline = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_channelsonline.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_created.ToString()) != null)
            {
                this.VirtualServerCreated = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_created.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_uptime.ToString()) != null)
            {
                this.VirtualServerUptime = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_uptime.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_codec_encryption_mode.ToString()) != null)
            {
                this.VirtualServerCodecEncryptionMode = (CodecEncryptionMode)Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_codec_encryption_mode.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_hostmessage.ToString()) != null)
            {
                this.VirtualServerHostmessage = result.GetResultByList(list, VirtualServerProperties.virtualserver_hostmessage.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_hostmessage_mode.ToString()) != null)
            {
                this.VirtualServerHostmessageMode = (HostMessageMode)Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_hostmessage_mode.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_filebase.ToString()) != null)
            {
                this.VirtualServerFilebase = result.GetResultByList(list, VirtualServerProperties.virtualserver_filebase.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_default_server_group.ToString()) != null)
            {
                this.VirtualServerDefaultServerGroup = new TS3Models.ServerGroup()
                {
                    SgId = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_default_server_group.ToString()))
                }
            }
            ;
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_default_channel_group.ToString()) != null)
            {
                this.VirtualServerDefaultChannelGroup = new TS3Models.ChannelGroup()
                {
                    CgId = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_default_channel_group.ToString()))
                }
            }
            ;
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_flag_password.ToString()) != null)
            {
                this.VirtualServerFlagPassword = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_flag_password.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_default_channel_admin_group.ToString()) != null)
            {
                this.VirtualServerDefaultChannelAdminGroup = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_default_channel_admin_group.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_max_download_total_bandwidth.ToString()) != null)
            {
                this.VirtualServerMaxDownloadTotalBandwidth = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_max_download_total_bandwidth.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_max_upload_total_bandwidth.ToString()) != null)
            {
                this.VirtualServerMaxUploadTotalBandwidth = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_max_upload_total_bandwidth.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbanner_url.ToString()) != null)
            {
                this.VirtualServerHostbannerUrl = result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbanner_url.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbanner_gfx_url.ToString()) != null)
            {
                this.VirtualServerHostbannerGfxUrl = result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbanner_gfx_url.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbanner_gfx_interval.ToString()) != null)
            {
                this.VirtualServerHostbannerGfxInterval = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbanner_gfx_interval.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_complain_autoban_count.ToString()) != null)
            {
                this.VirtualServerComplainAutobanCount = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_complain_autoban_count.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_complain_autoban_time.ToString()) != null)
            {
                this.VirtualServerComplainAutobanTime = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_complain_autoban_time.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_complain_remove_time.ToString()) != null)
            {
                this.VirtualServerComplainRemoveTime = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_complain_remove_time.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_min_clients_in_channel_before_forced_silence.ToString()) != null)
            {
                this.VirtualServerMinClientsInChannelBeforeForcedSilence = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_min_clients_in_channel_before_forced_silence.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_priority_speaker_dimm_modificator.ToString()) != null)
            {
                this.VirtualServerPrioritySpeakerDimmModificator = Convert.ToDouble(result.GetResultByList(list, VirtualServerProperties.virtualserver_priority_speaker_dimm_modificator.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_id.ToString()) != null)
            {
                this.VirtualServerId = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_id.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_antiflood_points_tick_reduce.ToString()) != null)
            {
                this.VirtualServerAntifloodPointsTickReduce = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_antiflood_points_tick_reduce.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_antiflood_points_needed_command_block.ToString()) != null)
            {
                this.VirtualServerAntifloodPointsNeededCommandBlock = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_antiflood_points_needed_command_block.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_antiflood_points_needed_ip_block.ToString()) != null)
            {
                this.VirtualServerAntifloodPointsNeededIpBlock = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_antiflood_points_needed_ip_block.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_client_connections.ToString()) != null)
            {
                this.VirtualServerClientConnections = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_client_connections.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_query_client_connections.ToString()) != null)
            {
                this.VirtualServerQueryClientConnections = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_query_client_connections.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbutton_tooltip.ToString()) != null)
            {
                this.VirtualServerHostbuttonTooltip = result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbutton_tooltip.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbutton_url.ToString()) != null)
            {
                this.VirtualServerHostbuttonUrl = result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbutton_url.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbutton_gfx_url.ToString()) != null)
            {
                this.VirtualServerHostbuttonGfxUrl = result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbutton_gfx_url.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_queryclientsonline.ToString()) != null)
            {
                this.VirtualServerQueryclientsonline = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_queryclientsonline.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_download_quota.ToString()) != null)
            {
                this.VirtualServerDownloadQuota = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_download_quota.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_upload_quota.ToString()) != null)
            {
                this.VirtualServerUploadQuota = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_upload_quota.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_month_bytes_downloaded.ToString()) != null)
            {
                this.VirtualServerMonthBytesDownloaded = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_month_bytes_downloaded.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_month_bytes_uploaded.ToString()) != null)
            {
                this.VirtualServerMonthBytesUploaded = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_month_bytes_uploaded.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_total_bytes_downloaded.ToString()) != null)
            {
                this.VirtualServerTotalBytesDownloaded = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_total_bytes_downloaded.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_total_bytes_uploaded.ToString()) != null)
            {
                this.VirtualServerTotalBytesUploaded = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_total_bytes_uploaded.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_port.ToString()) != null)
            {
                this.VirtualServerPort = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_port.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_autostart.ToString()) != null)
            {
                this.VirtualServerAutostart = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_autostart.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_machine_id.ToString()) != null)
            {
                this.VirtualServerMachineId = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_machine_id.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_needed_identity_security_level.ToString()) != null)
            {
                this.VirtualServerNeededIdentitySecurityLevel = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_needed_identity_security_level.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_log_client.ToString()) != null)
            {
                this.VirtualServerLogClient = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_log_client.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_log_query.ToString()) != null)
            {
                this.VirtualServerLogQuery = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_log_query.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_log_channel.ToString()) != null)
            {
                this.VirtualServerLogChannel = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_log_channel.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_log_permissions.ToString()) != null)
            {
                this.VirtualServerLogPermissions = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_log_permissions.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_log_server.ToString()) != null)
            {
                this.VirtualServerLogServer = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_log_server.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_log_filetransfer.ToString()) != null)
            {
                this.VirtualServerLogFiletransfer = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_log_filetransfer.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_min_client_version.ToString()) != null)
            {
                this.VirtualServerMinClientVersion = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_min_client_version.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_name_phonetic.ToString()) != null)
            {
                this.VirtualServerNamePhonetic = result.GetResultByList(list, VirtualServerProperties.virtualserver_name_phonetic.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_icon_id.ToString()) != null)
            {
                this.VirtualServerIconId = Convert.ToUInt64(result.GetResultByList(list, VirtualServerProperties.virtualserver_icon_id.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_reserved_slots.ToString()) != null)
            {
                this.VirtualServerReservedSlots = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_reserved_slots.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_total_packetloss_speech.ToString()) != null)
            {
                this.VirtualServerTotalPacketlossSpeech = Convert.ToDouble(result.GetResultByList(list, VirtualServerProperties.virtualserver_total_packetloss_speech.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_total_packetloss_keepalive.ToString()) != null)
            {
                this.VirtualServerTotalPacketlossKeepalive = Convert.ToDouble(result.GetResultByList(list, VirtualServerProperties.virtualserver_total_packetloss_keepalive.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_total_packetloss_control.ToString()) != null)
            {
                this.VirtualServerTotalPacketlossControl = Convert.ToDouble(result.GetResultByList(list, VirtualServerProperties.virtualserver_total_packetloss_control.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_total_packetloss_total.ToString()) != null)
            {
                this.VirtualServerTotalPacketlossTotal = Convert.ToDouble(result.GetResultByList(list, VirtualServerProperties.virtualserver_total_packetloss_total.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_total_ping.ToString()) != null)
            {
                this.VirtualServerTotalPing = Convert.ToDouble(result.GetResultByList(list, VirtualServerProperties.virtualserver_total_ping.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_ip.ToString()) != null)
            {
                this.VirtualServerIp = result.GetResultByList(list, VirtualServerProperties.virtualserver_ip.ToString());
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_weblist_enabled.ToString()) != null)
            {
                this.VirtualServerWeblistEnabled = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_weblist_enabled.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_ask_for_privilegekey.ToString()) != null)
            {
                this.VirtualServerAskForPrivilegekey = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_ask_for_privilegekey.ToString())));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbanner_mode.ToString()) != null)
            {
                this.VirtualServerHostbannerMode = (TS3Models.HostBannerMode)Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_hostbanner_mode.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_channel_temp_delete_delay_default.ToString()) != null)
            {
                this.VirtualServerChannelTempDeleteDelayDefault = Convert.ToInt32(result.GetResultByList(list, VirtualServerProperties.virtualserver_channel_temp_delete_delay_default.ToString()));
            }
            if (result.GetResultByList(list, VirtualServerProperties.virtualserver_status.ToString()) != null)
            {
                this.VirtualServerStatus = result.GetResultByList(list, VirtualServerProperties.virtualserver_status.ToString());
            }
            this.Result = result;
            return(this);
        }
    }
}
 public ServerGroup FillWithResult(Result result, Dictionary <string, string> list)
 {
     if (result.GetResultByList(list, ServerGroupProperties.sgid.ToString()) != null)
     {
         this.SgId = Convert.ToInt32(result.GetResultByList(list, ServerGroupProperties.sgid.ToString()));
     }
     if (result.GetResultByList(list, ServerGroupProperties.name.ToString()) != null)
     {
         this.Name = result.GetResultByList(list, ServerGroupProperties.name.ToString());
     }
     if (result.GetResultByList(list, ServerGroupProperties.type.ToString()) != null)
     {
         this.Type = Convert.ToInt32(result.GetResultByList(list, ServerGroupProperties.type.ToString()));
     }
     if (result.GetResultByList(list, ServerGroupProperties.iconid.ToString()) != null)
     {
         this.IconId = Convert.ToUInt64(result.GetResultByList(list, ServerGroupProperties.iconid.ToString()));
     }
     if (result.GetResultByList(list, ServerGroupProperties.savedb.ToString()) != null)
     {
         this.SaveDb = Convert.ToInt32(result.GetResultByList(list, ServerGroupProperties.savedb.ToString()));
     }
     if (result.GetResultByList(list, ServerGroupProperties.sortid.ToString()) != null)
     {
         this.SortId = Convert.ToInt32(result.GetResultByList(list, ServerGroupProperties.sortid.ToString()));
     }
     if (result.GetResultByList(list, ServerGroupProperties.namemode.ToString()) != null)
     {
         this.NameMode = Convert.ToInt32(result.GetResultByList(list, ServerGroupProperties.namemode.ToString()));
     }
     if (result.GetResultByList(list, ServerGroupProperties.n_modifyp.ToString()) != null)
     {
         this.NModifyP = Convert.ToInt32(result.GetResultByList(list, ServerGroupProperties.n_modifyp.ToString()));
     }
     if (result.GetResultByList(list, ServerGroupProperties.n_member_addp.ToString()) != null)
     {
         this.NMemberAddP = Convert.ToInt32(result.GetResultByList(list, ServerGroupProperties.n_member_addp.ToString()));
     }
     if (result.GetResultByList(list, ServerGroupProperties.n_member_removep.ToString()) != null)
     {
         this.NMemberRemoveP = Convert.ToInt32(result.GetResultByList(list, ServerGroupProperties.n_member_removep.ToString()));
     }
     this.Result = result;
     return(this);
 }
 public Channel FillWithResult(Result result, Dictionary <string, string> list)
 {
     if (result.GetResultByList(list, ChannelProperties.cid.ToString()) != null)
     {
         this.CId = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.cid.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.cpid.ToString()) != null)
     {
         this.CpId = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.cpid.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_name.ToString()) != null)
     {
         this.ChannelName = result.GetResultByList(list, ChannelProperties.channel_name.ToString());
     }
     if (result.GetResultByList(list, ChannelProperties.channel_topic.ToString()) != null)
     {
         this.ChannelTopic = result.GetResultByList(list, ChannelProperties.channel_topic.ToString());
     }
     if (result.GetResultByList(list, ChannelProperties.channel_description.ToString()) != null)
     {
         this.ChannelDescription = result.GetResultByList(list, ChannelProperties.channel_description.ToString());
     }
     if (result.GetResultByList(list, ChannelProperties.channel_password.ToString()) != null)
     {
         this.ChannelPassword = result.GetResultByList(list, ChannelProperties.channel_password.ToString());
     }
     if (result.GetResultByList(list, ChannelProperties.channel_codec.ToString()) != null)
     {
         this.ChannelCodec = (TS3Models.Codec)Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_codec.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_codec_quality.ToString()) != null)
     {
         this.ChannelCodecQuality = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_codec_quality.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_maxclients.ToString()) != null)
     {
         this.ChannelMaxclients = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_maxclients.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_maxfamilyclients.ToString()) != null)
     {
         this.ChannelMaxfamilyclients = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_maxfamilyclients.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_order.ToString()) != null)
     {
         this.ChannelOrder = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_order.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_permanent.ToString()) != null)
     {
         this.ChannelFlagPermanent = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_permanent.ToString())));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_semi_permanent.ToString()) != null)
     {
         this.ChannelFlagSemiPermanent = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_semi_permanent.ToString())));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_temporary.ToString()) != null)
     {
         this.ChannelFlagTemporary = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_temporary.ToString())));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_default.ToString()) != null)
     {
         this.ChannelFlagDefault = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_default.ToString())));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_password.ToString()) != null)
     {
         this.ChannelFlagPassword = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_password.ToString())));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_codec_latency_factor.ToString()) != null)
     {
         this.ChannelCodecLatencyFactor = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_codec_latency_factor.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_codec_is_unencrypted.ToString()) != null)
     {
         this.ChannelCodecIsUnencrypted = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_codec_is_unencrypted.ToString())));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_security_salt.ToString()) != null)
     {
         this.ChannelSecuritySalt = result.GetResultByList(list, ChannelProperties.channel_security_salt.ToString());
     }
     if (result.GetResultByList(list, ChannelProperties.channel_delete_delay.ToString()) != null)
     {
         this.ChannelDeleteDelay = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_delete_delay.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_maxclients_unlimited.ToString()) != null)
     {
         this.ChannelFlagMaxclientsUnlimited = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_maxclients_unlimited.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_maxfamilyclients_unlimited.ToString()) != null)
     {
         this.ChannelFlagMaxfamilyclientsUnlimited = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_maxfamilyclients_unlimited.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_maxfamilyclients_inherited.ToString()) != null)
     {
         this.ChannelFlagMaxfamilyclientsInherited = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_maxfamilyclients_inherited.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_filepath.ToString()) != null)
     {
         this.ChannelFilepath = result.GetResultByList(list, ChannelProperties.channel_filepath.ToString());
     }
     if (result.GetResultByList(list, ChannelProperties.channel_needed_talk_power.ToString()) != null)
     {
         this.ChannelNeededTalkPower = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_needed_talk_power.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_forced_silence.ToString()) != null)
     {
         this.ChannelForcedSilence = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_forced_silence.ToString())));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_name_phonetic.ToString()) != null)
     {
         this.ChannelNamePhonetic = result.GetResultByList(list, ChannelProperties.channel_name_phonetic.ToString());
     }
     if (result.GetResultByList(list, ChannelProperties.channel_icon_id.ToString()) != null)
     {
         this.ChannelIconId = Convert.ToUInt64(result.GetResultByList(list, ChannelProperties.channel_icon_id.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_are_subscribed.ToString()) != null)
     {
         this.ChannelFlagAreSubscribed = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_are_subscribed.ToString())));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_flag_private.ToString()) != null)
     {
         this.ChannelFlagPrivate = Convert.ToBoolean(Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_flag_private.ToString())));
     }
     if (result.GetResultByList(list, ChannelProperties.seconds_empty.ToString()) != null)
     {
         this.SecondsEmpty = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.seconds_empty.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.total_clients.ToString()) != null)
     {
         this.TotalClients = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.total_clients.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.total_clients_family.ToString()) != null)
     {
         this.TotalClientsFamily = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.total_clients_family.ToString()));
     }
     if (result.GetResultByList(list, ChannelProperties.channel_needed_subscribe_power.ToString()) != null)
     {
         this.ChannelNeededSubscribePower = Convert.ToInt32(result.GetResultByList(list, ChannelProperties.channel_needed_subscribe_power.ToString()));
     }
     this.Result = result;
     return(this);
 }