/* * 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 GameServerSessionPlacement : AbstractModel { /// /// 部署Id /// [JsonProperty("PlacementId")] public string PlacementId{ get; set; } /// /// 服务部署组名称 /// [JsonProperty("GameServerSessionQueueName")] public string GameServerSessionQueueName{ get; set; } /// /// 玩家延迟 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PlayerLatencies")] public PlayerLatency[] PlayerLatencies{ get; set; } /// /// 服务部署状态 /// [JsonProperty("Status")] public string Status{ get; set; } /// /// 分配给正在运行游戏会话的实例的DNS标识符 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("DnsName")] public string DnsName{ get; set; } /// /// 游戏会话Id /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GameServerSessionId")] public string GameServerSessionId{ get; set; } /// /// 游戏会话名称 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GameServerSessionName")] public string GameServerSessionName{ get; set; } /// /// 服务部署区域 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GameServerSessionRegion")] public string GameServerSessionRegion{ get; set; } /// /// 游戏属性 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GameProperties")] public GameProperty[] GameProperties{ get; set; } /// /// 最大玩家数量 /// [JsonProperty("MaximumPlayerSessionCount")] public ulong? MaximumPlayerSessionCount{ get; set; } /// /// 游戏会话数据 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GameServerSessionData")] public string GameServerSessionData{ get; set; } /// /// 运行游戏会话的实例的IP地址 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("IpAddress")] public string IpAddress{ get; set; } /// /// 运行游戏会话的实例的端口号 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Port")] public ulong? Port{ get; set; } /// /// 游戏匹配数据 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("MatchmakerData")] public string MatchmakerData{ get; set; } /// /// 部署的玩家游戏数据 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("PlacedPlayerSessions")] public PlacedPlayerSession[] PlacedPlayerSessions{ get; set; } /// /// 开始时间 /// [JsonProperty("StartTime")] public string StartTime{ get; set; } /// /// 结束时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("EndTime")] public string EndTime{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "PlacementId", this.PlacementId); this.SetParamSimple(map, prefix + "GameServerSessionQueueName", this.GameServerSessionQueueName); this.SetParamArrayObj(map, prefix + "PlayerLatencies.", this.PlayerLatencies); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "DnsName", this.DnsName); this.SetParamSimple(map, prefix + "GameServerSessionId", this.GameServerSessionId); this.SetParamSimple(map, prefix + "GameServerSessionName", this.GameServerSessionName); this.SetParamSimple(map, prefix + "GameServerSessionRegion", this.GameServerSessionRegion); this.SetParamArrayObj(map, prefix + "GameProperties.", this.GameProperties); this.SetParamSimple(map, prefix + "MaximumPlayerSessionCount", this.MaximumPlayerSessionCount); this.SetParamSimple(map, prefix + "GameServerSessionData", this.GameServerSessionData); this.SetParamSimple(map, prefix + "IpAddress", this.IpAddress); this.SetParamSimple(map, prefix + "Port", this.Port); this.SetParamSimple(map, prefix + "MatchmakerData", this.MatchmakerData); this.SetParamArrayObj(map, prefix + "PlacedPlayerSessions.", this.PlacedPlayerSessions); this.SetParamSimple(map, prefix + "StartTime", this.StartTime); this.SetParamSimple(map, prefix + "EndTime", this.EndTime); } } }