代码修改后的版本,全部提交
This commit is contained in:
204
TencentCloud/Gse/V20191112/Models/GameServerSession.cs
Normal file
204
TencentCloud/Gse/V20191112/Models/GameServerSession.cs
Normal file
@@ -0,0 +1,204 @@
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 游戏服务器会话创建时间
|
||||
/// </summary>
|
||||
[JsonProperty("CreationTime")]
|
||||
public string CreationTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建者ID
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CreatorId")]
|
||||
public string CreatorId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前玩家数量
|
||||
/// </summary>
|
||||
[JsonProperty("CurrentPlayerSessionCount")]
|
||||
public ulong? CurrentPlayerSessionCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CVM的DNS标识符
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("DnsName")]
|
||||
public string DnsName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 舰队ID
|
||||
/// </summary>
|
||||
[JsonProperty("FleetId")]
|
||||
public string FleetId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 游戏属性
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("GameProperties")]
|
||||
public GameProperty[] GameProperties{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 游戏服务器会话属性详情
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("GameServerSessionData")]
|
||||
public string GameServerSessionData{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 游戏服务器会话ID
|
||||
/// </summary>
|
||||
[JsonProperty("GameServerSessionId")]
|
||||
public string GameServerSessionId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CVM IP地址
|
||||
/// </summary>
|
||||
[JsonProperty("IpAddress")]
|
||||
public string IpAddress{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 对战进程详情
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("MatchmakerData")]
|
||||
public string MatchmakerData{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最大玩家数量
|
||||
/// </summary>
|
||||
[JsonProperty("MaximumPlayerSessionCount")]
|
||||
public ulong? MaximumPlayerSessionCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 游戏服务器会话名称
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 玩家会话创建策略
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("PlayerSessionCreationPolicy")]
|
||||
public string PlayerSessionCreationPolicy{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 端口号
|
||||
/// </summary>
|
||||
[JsonProperty("Port")]
|
||||
public ulong? Port{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 游戏服务器会话状态
|
||||
/// </summary>
|
||||
[JsonProperty("Status")]
|
||||
public string Status{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 游戏服务器会话状态附加信息
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("StatusReason")]
|
||||
public string StatusReason{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 终止的时间
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("TerminationTime")]
|
||||
public string TerminationTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实例类型
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("InstanceType")]
|
||||
public string InstanceType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前自定义数
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CurrentCustomCount")]
|
||||
public long? CurrentCustomCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最大自定义数
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("MaxCustomCount")]
|
||||
public long? MaxCustomCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 权重
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Weight")]
|
||||
public long? Weight{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 会话可用性状态,是否被屏蔽
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("AvailabilityStatus")]
|
||||
public string AvailabilityStatus{ 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 + "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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user