/* * 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.Gse.V20191112.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class PlayerSession : AbstractModel { /// /// 玩家会话创建时间 /// [JsonProperty("CreationTime")] public string CreationTime{ get; set; } /// /// 游戏服务器会话运行的DNS标识 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("DnsName")] public string DnsName{ get; set; } /// /// 舰队ID /// [JsonProperty("FleetId")] public string FleetId{ get; set; } /// /// 游戏服务器会话ID /// [JsonProperty("GameServerSessionId")] public string GameServerSessionId{ get; set; } /// /// 游戏服务器会话运行的CVM地址 /// [JsonProperty("IpAddress")] public string IpAddress{ get; set; } /// /// 玩家相关信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PlayerData")] public string PlayerData{ get; set; } /// /// 玩家ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PlayerId")] public string PlayerId{ get; set; } /// /// 玩家会话ID /// [JsonProperty("PlayerSessionId")] public string PlayerSessionId{ get; set; } /// /// 端口号 /// [JsonProperty("Port")] public ulong? Port{ get; set; } /// /// 玩家会话的状态 /// [JsonProperty("Status")] public string Status{ get; set; } /// /// 玩家会话终止时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("TerminationTime")] public string TerminationTime{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "CreationTime", this.CreationTime); this.SetParamSimple(map, prefix + "DnsName", this.DnsName); this.SetParamSimple(map, prefix + "FleetId", this.FleetId); this.SetParamSimple(map, prefix + "GameServerSessionId", this.GameServerSessionId); this.SetParamSimple(map, prefix + "IpAddress", this.IpAddress); this.SetParamSimple(map, prefix + "PlayerData", this.PlayerData); this.SetParamSimple(map, prefix + "PlayerId", this.PlayerId); this.SetParamSimple(map, prefix + "PlayerSessionId", this.PlayerSessionId); this.SetParamSimple(map, prefix + "Port", this.Port); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "TerminationTime", this.TerminationTime); } } }