jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
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
package com.ld.igds.io.notify;
 
import com.ld.igds.oa.dto.GpsData;
import com.ld.igds.oa.dto.GpsLocationData;
 
/**
 * 包括主动通知和
 * 
 * @author:
 * @description:
 * @version:
 * @data:
 *
 */
public interface NotifyGpsMacService {
 
    public static final String BEAN_ID = "m.notifyGpsMacService";
 
    /**
     * 注册和鉴权信息通知,更新ip、port、sn、phone信息
     * 
     * @param data
     */
    void registerAndAuthNotify(GpsData data);
 
    /**
     * 位置信息通知
     *
     * @param data
     */
    void locationNotify(GpsLocationData data);
 
    /**
     * 重新连接
     * @param address
     * @param port
     */
    void onCreate(String address, Integer port);
 
    /**
     * 断开连接
     * @param address
     * @param port
     */
    void onDestroy(String address, Integer port);
 
    /**
     * 鉴权
     * @param data
     * @return
     */
    boolean authSn(GpsData data);
 
}