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);
|
|
}
|