Files

112 lines
3.4 KiB
C#
Raw Permalink Normal View History

/*
* 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
{
/// <summary>
/// 客户appid
/// </summary>
[JsonProperty("AppId")]
public ulong? AppId{ get; set; }
/// <summary>
/// 资源池编号
/// </summary>
[JsonProperty("SetNo")]
public ulong? SetNo{ get; set; }
/// <summary>
/// 机器所属区域
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 机器ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 机器类型:
/// LARGE-大型
/// MEDIUM-中型
/// SMALL-小型
/// </summary>
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
/// <summary>
/// 机器IP
/// </summary>
[JsonProperty("Ip")]
public string Ip{ get; set; }
/// <summary>
/// 服务状态:
/// IDLE-空闲
/// LOCK-锁定
/// ESTABLISHED-游戏中
/// RECONNECT-等待重连
/// RECOVERY-清理恢复
/// FORBID-禁用
/// UNAVAILABLE-不可用
/// </summary>
[JsonProperty("ServiceState")]
public string ServiceState{ get; set; }
/// <summary>
/// 用户ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UserId")]
public string UserId{ get; set; }
/// <summary>
/// 游戏ID
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GameId")]
public string GameId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> 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);
}
}
}