jiangping
2025-02-06 0bb514f42de29164d6ec5f54806d98a881ae0c7f
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
package org.yzh.protocol.t808;
 
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.JT808;
 
import java.time.LocalDateTime;
 
/**
 * @author yezhihao
 * https://gitee.com/yezhihao/jt808-server
 */
@Message(JT808.查询服务器时间应答)
public class T8004 extends JTMessage {
 
    @Field(length = 6, charset = "BCD", desc = "UTC时间")
    private LocalDateTime dateTime;
 
    public T8004() {
    }
 
    public T8004(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }
 
    public LocalDateTime getDateTime() {
        return dateTime;
    }
 
    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }
}