/* * 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.Iotcloud.V20180614.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DescribeDeviceResponse : AbstractModel { /// /// 设备名 /// [JsonProperty("DeviceName")] public string DeviceName{ get; set; } /// /// 设备是否在线,0不在线,1在线 /// [JsonProperty("Online")] public ulong? Online{ get; set; } /// /// 设备登录时间 /// [JsonProperty("LoginTime")] public ulong? LoginTime{ get; set; } /// /// 设备固件版本 /// [JsonProperty("Version")] public string Version{ get; set; } /// /// 设备最后更新时间 /// [JsonProperty("LastUpdateTime")] public ulong? LastUpdateTime{ get; set; } /// /// 设备证书 /// [JsonProperty("DeviceCert")] public string DeviceCert{ get; set; } /// /// 设备密钥 /// [JsonProperty("DevicePsk")] public string DevicePsk{ get; set; } /// /// 设备属性 /// [JsonProperty("Tags")] public DeviceTag[] Tags{ get; set; } /// /// 设备类型 /// [JsonProperty("DeviceType")] public ulong? DeviceType{ get; set; } /// /// IMEI /// [JsonProperty("Imei")] public string Imei{ get; set; } /// /// 运营商类型 /// [JsonProperty("Isp")] public ulong? Isp{ get; set; } /// /// IP地址 /// [JsonProperty("ConnIP")] public ulong? ConnIP{ get; set; } /// /// NB IoT运营商处的DeviceID /// [JsonProperty("NbiotDeviceID")] public string NbiotDeviceID{ get; set; } /// /// Lora设备的dev eui /// [JsonProperty("LoraDevEui")] public string LoraDevEui{ get; set; } /// /// Lora设备的mote type /// [JsonProperty("LoraMoteType")] public ulong? LoraMoteType{ get; set; } /// /// 设备的sdk日志等级 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("LogLevel")] public ulong? LogLevel{ get; set; } /// /// 首次上线时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("FirstOnlineTime")] public ulong? FirstOnlineTime{ get; set; } /// /// 最近下线时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("LastOfflineTime")] public ulong? LastOfflineTime{ get; set; } /// /// 设备创建时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("CreateTime")] public ulong? CreateTime{ get; set; } /// /// 设备证书获取状态,0 未获取过设备密钥, 1 已获取过设备密钥 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("CertState")] public ulong? CertState{ get; set; } /// /// 设备启用状态 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("EnableState")] public ulong? EnableState{ get; set; } /// /// 设备标签 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Labels")] public DeviceLabel[] Labels{ get; set; } /// /// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 /// [JsonProperty("RequestId")] public string RequestId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "DeviceName", this.DeviceName); this.SetParamSimple(map, prefix + "Online", this.Online); this.SetParamSimple(map, prefix + "LoginTime", this.LoginTime); this.SetParamSimple(map, prefix + "Version", this.Version); this.SetParamSimple(map, prefix + "LastUpdateTime", this.LastUpdateTime); this.SetParamSimple(map, prefix + "DeviceCert", this.DeviceCert); this.SetParamSimple(map, prefix + "DevicePsk", this.DevicePsk); this.SetParamArrayObj(map, prefix + "Tags.", this.Tags); this.SetParamSimple(map, prefix + "DeviceType", this.DeviceType); this.SetParamSimple(map, prefix + "Imei", this.Imei); this.SetParamSimple(map, prefix + "Isp", this.Isp); this.SetParamSimple(map, prefix + "ConnIP", this.ConnIP); this.SetParamSimple(map, prefix + "NbiotDeviceID", this.NbiotDeviceID); this.SetParamSimple(map, prefix + "LoraDevEui", this.LoraDevEui); this.SetParamSimple(map, prefix + "LoraMoteType", this.LoraMoteType); this.SetParamSimple(map, prefix + "LogLevel", this.LogLevel); this.SetParamSimple(map, prefix + "FirstOnlineTime", this.FirstOnlineTime); this.SetParamSimple(map, prefix + "LastOfflineTime", this.LastOfflineTime); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "CertState", this.CertState); this.SetParamSimple(map, prefix + "EnableState", this.EnableState); this.SetParamArrayObj(map, prefix + "Labels.", this.Labels); this.SetParamSimple(map, prefix + "RequestId", this.RequestId); } } }