/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Gs.V20191118.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class WorkerDetail : AbstractModel { /// /// 客户appid /// [JsonProperty("AppId")] public ulong? AppId{ get; set; } /// /// 资源池编号 /// [JsonProperty("SetNo")] public ulong? SetNo{ get; set; } /// /// 机器所属区域 /// [JsonProperty("Region")] public string Region{ get; set; } /// /// 机器ID /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 机器类型: /// LARGE-大型 /// MEDIUM-中型 /// SMALL-小型 /// [JsonProperty("InstanceType")] public string InstanceType{ get; set; } /// /// 机器IP /// [JsonProperty("Ip")] public string Ip{ get; set; } /// /// 服务状态: /// IDLE-空闲 /// LOCK-锁定 /// ESTABLISHED-游戏中 /// RECONNECT-等待重连 /// RECOVERY-清理恢复 /// FORBID-禁用 /// UNAVAILABLE-不可用 /// [JsonProperty("ServiceState")] public string ServiceState{ get; set; } /// /// 用户ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("UserId")] public string UserId{ get; set; } /// /// 游戏ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GameId")] public string GameId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "AppId", this.AppId); this.SetParamSimple(map, prefix + "SetNo", this.SetNo); this.SetParamSimple(map, prefix + "Region", this.Region); this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId); this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType); this.SetParamSimple(map, prefix + "Ip", this.Ip); this.SetParamSimple(map, prefix + "ServiceState", this.ServiceState); this.SetParamSimple(map, prefix + "UserId", this.UserId); this.SetParamSimple(map, prefix + "GameId", this.GameId); } } }