当前位置: 首页>>代码示例>>C#>>正文


C# Result.GetResultByList方法代码示例

本文整理汇总了C#中System.Result.GetResultByList方法的典型用法代码示例。如果您正苦于以下问题:C# Result.GetResultByList方法的具体用法?C# Result.GetResultByList怎么用?C# Result.GetResultByList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Result的用法示例。


在下文中一共展示了Result.GetResultByList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FillWithResult

 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()));
//.........这里部分代码省略.........
开发者ID:Poket-Jony,项目名称:TS3ClientQueryFramework,代码行数:101,代码来源:VirtualServer.cs

示例2: FillWithResult

 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;
 }
开发者ID:Poket-Jony,项目名称:TS3ClientQueryFramework,代码行数:73,代码来源:Channel.cs

示例3: FillWithResult

 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;
 }
开发者ID:Poket-Jony,项目名称:TS3ClientQueryFramework,代码行数:100,代码来源:Client.cs

示例4: FillWithResult

 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;
 }
开发者ID:Poket-Jony,项目名称:TS3ClientQueryFramework,代码行数:25,代码来源:ServerGroup.cs


注:本文中的System.Result.GetResultByList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。