/* * 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.Live.V20180801.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DomainInfo : AbstractModel { /// /// 直播域名。 /// [JsonProperty("Name")] public string Name{ get; set; } /// /// 域名类型: /// 0: 推流。 /// 1: 播放。 /// [JsonProperty("Type")] public ulong? Type{ get; set; } /// /// 域名状态: /// 0: 停用。 /// 1: 启用。 /// [JsonProperty("Status")] public ulong? Status{ get; set; } /// /// 添加时间。 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 是否有 CName 到固定规则域名: /// 0: 否。 /// 1: 是。 /// [JsonProperty("BCName")] public ulong? BCName{ get; set; } /// /// cname 对应的域名。 /// [JsonProperty("TargetDomain")] public string TargetDomain{ get; set; } /// /// 播放区域,只在 Type=1 时该参数有意义。 /// 1: 国内。 /// 2: 全球。 /// 3: 海外。 /// [JsonProperty("PlayType")] public long? PlayType{ get; set; } /// /// 是否慢直播: /// 0: 普通直播。 /// 1: 慢直播。 /// [JsonProperty("IsDelayLive")] public long? IsDelayLive{ get; set; } /// /// 当前客户使用的 cname 信息。 /// [JsonProperty("CurrentCName")] public string CurrentCName{ get; set; } /// /// 失效参数,可忽略。 /// [JsonProperty("RentTag")] public long? RentTag{ get; set; } /// /// 失效参数,可忽略。 /// [JsonProperty("RentExpireTime")] public string RentExpireTime{ get; set; } /// /// 0: 标准直播。 /// 1: 小程序直播。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("IsMiniProgramLive")] public long? IsMiniProgramLive{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Name", this.Name); this.SetParamSimple(map, prefix + "Type", this.Type); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "BCName", this.BCName); this.SetParamSimple(map, prefix + "TargetDomain", this.TargetDomain); this.SetParamSimple(map, prefix + "PlayType", this.PlayType); this.SetParamSimple(map, prefix + "IsDelayLive", this.IsDelayLive); this.SetParamSimple(map, prefix + "CurrentCName", this.CurrentCName); this.SetParamSimple(map, prefix + "RentTag", this.RentTag); this.SetParamSimple(map, prefix + "RentExpireTime", this.RentExpireTime); this.SetParamSimple(map, prefix + "IsMiniProgramLive", this.IsMiniProgramLive); } } }