-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathp_0x8201.go
More file actions
40 lines (32 loc) · 712 Bytes
/
p_0x8201.go
File metadata and controls
40 lines (32 loc) · 712 Bytes
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
package model
import (
"fmt"
"github.com/cuteLittleDevil/go-jt808/protocol/jt808"
"github.com/cuteLittleDevil/go-jt808/shared/consts"
"strings"
)
type P0x8201 struct {
BaseHandle
}
func (p *P0x8201) Protocol() consts.JT808CommandType {
return consts.P8201QueryLocation
}
func (p *P0x8201) ReplyProtocol() consts.JT808CommandType {
return consts.T0201QueryLocation
}
func (p *P0x8201) Parse(_ *jt808.JTMessage) error {
return nil
}
func (p *P0x8201) Encode() []byte {
return nil
}
func (p *P0x8201) HasReply() bool {
return false
}
func (p *P0x8201) String() string {
return strings.Join([]string{
"数据体对象:{",
fmt.Sprintf("\t%s:[%x]", p.Protocol(), p.Encode()),
"}",
}, "\n")
}