Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TuyaDeviceApiInfo.cs - github.com/ClusterM/tuyanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2b1a3e83ec991261ac75382777a51d53af65fcf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using Newtonsoft.Json;
using System.Collections.Generic;

namespace com.clusterrr.TuyaNet
{
    /// <summary>
    /// Device info received from Tuya API.
    /// </summary>
    public class TuyaDeviceApiInfo
    {
        [JsonProperty("active_time")]
        public int ActiveTime { get; set; }

        [JsonProperty("biz_type")]
        public int BizType { get; set; }

        [JsonProperty("category")]
        public string Category { get; set; }

        [JsonProperty("create_time")]
        public int CreateTime { get; set; }

        [JsonProperty("icon")]
        public string Icon { get; set; }

        [JsonProperty("id")]
        public string Id { get; set; }

        [JsonProperty("ip")]
        public string Ip { get; set; }

        [JsonProperty("lat")]
        public string Lat { get; set; }

        [JsonProperty("local_key")]
        public string LocalKey { get; set; }

        [JsonProperty("lon")]
        public string Lon { get; set; }

        [JsonProperty("model")]
        public string Model { get; set; }

        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("online")]
        public bool Online { get; set; }

        [JsonProperty("owner_id")]
        public string OwnerId { get; set; }

        [JsonProperty("product_id")]
        public string ProductId { get; set; }

        [JsonProperty("product_name")]
        public string ProductName { get; set; }

        [JsonProperty("status")]
        public List<TuyaDeviceStatus> Status { get; set; }

        [JsonProperty("sub")]
        public bool Sub { get; set; }

        [JsonProperty("time_zone")]
        public string TimeZone { get; set; }

        [JsonProperty("uid")]
        public string UserId { get; set; }

        [JsonProperty("update_time")]
        public int UpdateTime { get; set; }

        [JsonProperty("uuid")]
        public string Uuid { get; set; }

        public override string ToString() => Name;
    }
}