111
k94314517
2025-02-28 04dba6a17f836b5fbdf0eedff8a129c6785fd8a2
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
package org.yzh.protocol.t1078;
 
import io.github.yezhihao.protostar.annotation.Field;
import io.github.yezhihao.protostar.annotation.Message;
import org.yzh.protocol.basics.JTMessage;
import org.yzh.protocol.commons.JT1078;
 
import java.time.LocalDateTime;
 
/**
 * @author yezhihao
 * https://gitee.com/yezhihao/jt808-server
 */
@Message(JT1078.文件上传指令)
public class T9206 extends JTMessage {
 
    @Field(lengthUnit = 1, desc = "服务器地址")
    private String ip;
    @Field(length = 2, desc = "端口")
    private int port;
    @Field(lengthUnit = 1, desc = "用户名")
    private String username;
    @Field(lengthUnit = 1, desc = "密码")
    private String password;
    @Field(lengthUnit = 1, desc = "文件上传路径")
    private String path;
    @Field(length = 1, desc = "逻辑通道号")
    private int channelNo;
    @Field(length = 6, charset = "BCD", desc = "开始时间(YYMMDDHHMMSS)")
    private LocalDateTime startTime;
    @Field(length = 6, charset = "BCD", desc = "结束时间(YYMMDDHHMMSS)")
    private LocalDateTime endTime;
    @Field(length = 4, desc = "报警标志0~31(参考808协议文档报警标志位定义)")
    private int warnBit1;
    @Field(length = 4, desc = "报警标志32~63")
    private int warnBit2;
    @Field(length = 1, desc = "音视频资源类型:0.音视频 1.音频 2.视频 3.视频或音视频")
    private int mediaType;
    @Field(length = 1, desc = "码流类型:0.所有码流 1.主码流 2.子码流")
    private int streamType;
    @Field(length = 1, desc = "存储位置:0.所有存储器 1.主存储器 2.灾备存储器")
    private int storageType;
    @Field(length = 1, desc = "任务执行条件(用bit位表示):[0]WIFI下可下载 [1]LAN连接时可下载 [2]3G/4G连接时可下载")
    private int condition = -1;
 
    public String getIp() {
        return ip;
    }
 
    public void setIp(String ip) {
        this.ip = ip;
    }
 
    public int getPort() {
        return port;
    }
 
    public void setPort(int port) {
        this.port = port;
    }
 
    public String getUsername() {
        return username;
    }
 
    public void setUsername(String username) {
        this.username = username;
    }
 
    public String getPassword() {
        return password;
    }
 
    public void setPassword(String password) {
        this.password = password;
    }
 
    public String getPath() {
        return path;
    }
 
    public void setPath(String path) {
        this.path = path;
    }
 
    public int getChannelNo() {
        return channelNo;
    }
 
    public void setChannelNo(int channelNo) {
        this.channelNo = channelNo;
    }
 
    public LocalDateTime getStartTime() {
        return startTime;
    }
 
    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }
 
    public LocalDateTime getEndTime() {
        return endTime;
    }
 
    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }
 
    public int getWarnBit1() {
        return warnBit1;
    }
 
    public void setWarnBit1(int warnBit1) {
        this.warnBit1 = warnBit1;
    }
 
    public int getWarnBit2() {
        return warnBit2;
    }
 
    public void setWarnBit2(int warnBit2) {
        this.warnBit2 = warnBit2;
    }
 
    public int getMediaType() {
        return mediaType;
    }
 
    public void setMediaType(int mediaType) {
        this.mediaType = mediaType;
    }
 
    public int getStreamType() {
        return streamType;
    }
 
    public void setStreamType(int streamType) {
        this.streamType = streamType;
    }
 
    public int getStorageType() {
        return storageType;
    }
 
    public void setStorageType(int storageType) {
        this.storageType = storageType;
    }
 
    public int getCondition() {
        return condition;
    }
 
    public void setCondition(int condition) {
        this.condition = condition;
    }
 
    public T9206 ip(String ip) {
        this.ip = ip;
        return this;
    }
 
    public T9206 port(int port) {
        this.port = port;
        return this;
    }
 
    public T9206 username(String username) {
        this.username = username;
        return this;
    }
 
    public T9206 password(String password) {
        this.password = password;
        return this;
    }
 
    public T9206 path(String path) {
        this.path = path;
        return this;
    }
 
    public T9206 channelNo(int channelNo) {
        this.channelNo = channelNo;
        return this;
    }
 
    public T9206 startTime(LocalDateTime startTime) {
        this.startTime = startTime;
        return this;
    }
 
    public T9206 endTime(LocalDateTime endTime) {
        this.endTime = endTime;
        return this;
    }
 
    public T9206 warnBit1(int warnBit1) {
        this.warnBit1 = warnBit1;
        return this;
    }
 
    public T9206 warnBit2(int warnBit2) {
        this.warnBit2 = warnBit2;
        return this;
    }
 
    public T9206 mediaType(int mediaType) {
        this.mediaType = mediaType;
        return this;
    }
 
    public T9206 streamType(int streamType) {
        this.streamType = streamType;
        return this;
    }
 
    public T9206 storageType(int storageType) {
        this.storageType = storageType;
        return this;
    }
 
    public T9206 condition(int condition) {
        this.condition = condition;
        return this;
    }
}