wangmengmeng
2024-12-24 24432a361d5c6bd6f3d8c008693e9f1155d62517
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
package com.dji.sdk.cloudapi.tsa;
 
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
 
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
 
/**
 * @author sean
 * @version 0.2
 * @date 2021/12/8
 */
@Schema(description = "device topology data")
public class DeviceTopology {
 
    @NotNull
    @Schema(description = "device sn", example = "1AEC32CK4AD23R")
    private String sn;
 
    @NotNull
    @JsonProperty("device_callsign")
    @Schema(description = "device nickname", example = "my M350")
    private String deviceCallsign;
 
    @NotNull
    @JsonProperty("device_model")
    @Valid
    private TopologyDeviceModel deviceModel;
 
    @NotNull
    @Schema(description = "online status")
    @JsonProperty("online_status")
    private Boolean onlineStatus;
 
    @Schema(description = "the id of the person using the device", format = "uuid")
    @JsonProperty("user_id")
    private String userId;
 
    @NotNull
    @Schema(description = "the nickname of the person using the device", example = "admin")
    @JsonProperty("user_callsign")
    private String userCallsign;
 
    @NotNull
    @JsonProperty("icon_urls")
    @Valid
    private DeviceIconUrl iconUrls;
 
    public DeviceTopology() {
    }
 
    @Override
    public String toString() {
        return "DeviceTopology{" +
                "sn='" + sn + '\'' +
                ", deviceCallsign='" + deviceCallsign + '\'' +
                ", deviceModel=" + deviceModel +
                ", onlineStatus=" + onlineStatus +
                ", userId='" + userId + '\'' +
                ", userCallsign='" + userCallsign + '\'' +
                ", iconUrls=" + iconUrls +
                '}';
    }
 
    public String getSn() {
        return sn;
    }
 
    public DeviceTopology setSn(String sn) {
        this.sn = sn;
        return this;
    }
 
    public String getDeviceCallsign() {
        return deviceCallsign;
    }
 
    public DeviceTopology setDeviceCallsign(String deviceCallsign) {
        this.deviceCallsign = deviceCallsign;
        return this;
    }
 
    public TopologyDeviceModel getDeviceModel() {
        return deviceModel;
    }
 
    public DeviceTopology setDeviceModel(TopologyDeviceModel deviceModel) {
        this.deviceModel = deviceModel;
        return this;
    }
 
    public Boolean getOnlineStatus() {
        return onlineStatus;
    }
 
    public DeviceTopology setOnlineStatus(Boolean onlineStatus) {
        this.onlineStatus = onlineStatus;
        return this;
    }
 
    public String getUserId() {
        return userId;
    }
 
    public DeviceTopology setUserId(String userId) {
        this.userId = userId;
        return this;
    }
 
    public String getUserCallsign() {
        return userCallsign;
    }
 
    public DeviceTopology setUserCallsign(String userCallsign) {
        this.userCallsign = userCallsign;
        return this;
    }
 
    public DeviceIconUrl getIconUrls() {
        return iconUrls;
    }
 
    public DeviceTopology setIconUrls(DeviceIconUrl iconUrls) {
        this.iconUrls = iconUrls;
        return this;
    }
}