/*
* 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 GameServerSession : AbstractModel
{
///
/// 游戏服务器会话创建时间
///
[JsonProperty("CreationTime")]
public string CreationTime{ get; set; }
///
/// 创建者ID
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("CreatorId")]
public string CreatorId{ get; set; }
///
/// 当前玩家数量
///
[JsonProperty("CurrentPlayerSessionCount")]
public ulong? CurrentPlayerSessionCount{ get; set; }
///
/// CVM的DNS标识符
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("DnsName")]
public string DnsName{ get; set; }
///
/// 舰队ID
///
[JsonProperty("FleetId")]
public string FleetId{ get; set; }
///
/// 游戏属性
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("GameProperties")]
public GameProperty[] GameProperties{ get; set; }
///
/// 游戏服务器会话属性详情
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("GameServerSessionData")]
public string GameServerSessionData{ get; set; }
///
/// 游戏服务器会话ID
///
[JsonProperty("GameServerSessionId")]
public string GameServerSessionId{ get; set; }
///
/// CVM IP地址
///
[JsonProperty("IpAddress")]
public string IpAddress{ get; set; }
///
/// 对战进程详情
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("MatchmakerData")]
public string MatchmakerData{ get; set; }
///
/// 最大玩家数量
///
[JsonProperty("MaximumPlayerSessionCount")]
public ulong? MaximumPlayerSessionCount{ get; set; }
///
/// 游戏服务器会话名称
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Name")]
public string Name{ get; set; }
///
/// 玩家会话创建策略
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("PlayerSessionCreationPolicy")]
public string PlayerSessionCreationPolicy{ get; set; }
///
/// 端口号
///
[JsonProperty("Port")]
public ulong? Port{ get; set; }
///
/// 游戏服务器会话状态
///
[JsonProperty("Status")]
public string Status{ get; set; }
///
/// 游戏服务器会话状态附加信息
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("StatusReason")]
public string StatusReason{ get; set; }
///
/// 终止的时间
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("TerminationTime")]
public string TerminationTime{ get; set; }
///
/// 实例类型
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
///
/// 当前自定义数
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("CurrentCustomCount")]
public long? CurrentCustomCount{ get; set; }
///
/// 最大自定义数
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("MaxCustomCount")]
public long? MaxCustomCount{ get; set; }
///
/// 权重
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Weight")]
public long? Weight{ get; set; }
///
/// 会话可用性状态,是否被屏蔽
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("AvailabilityStatus")]
public string AvailabilityStatus{ 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 + "CreatorId", this.CreatorId);
this.SetParamSimple(map, prefix + "CurrentPlayerSessionCount", this.CurrentPlayerSessionCount);
this.SetParamSimple(map, prefix + "DnsName", this.DnsName);
this.SetParamSimple(map, prefix + "FleetId", this.FleetId);
this.SetParamArrayObj(map, prefix + "GameProperties.", this.GameProperties);
this.SetParamSimple(map, prefix + "GameServerSessionData", this.GameServerSessionData);
this.SetParamSimple(map, prefix + "GameServerSessionId", this.GameServerSessionId);
this.SetParamSimple(map, prefix + "IpAddress", this.IpAddress);
this.SetParamSimple(map, prefix + "MatchmakerData", this.MatchmakerData);
this.SetParamSimple(map, prefix + "MaximumPlayerSessionCount", this.MaximumPlayerSessionCount);
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "PlayerSessionCreationPolicy", this.PlayerSessionCreationPolicy);
this.SetParamSimple(map, prefix + "Port", this.Port);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "StatusReason", this.StatusReason);
this.SetParamSimple(map, prefix + "TerminationTime", this.TerminationTime);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "CurrentCustomCount", this.CurrentCustomCount);
this.SetParamSimple(map, prefix + "MaxCustomCount", this.MaxCustomCount);
this.SetParamSimple(map, prefix + "Weight", this.Weight);
this.SetParamSimple(map, prefix + "AvailabilityStatus", this.AvailabilityStatus);
}
}
}