info.gratour.adaptor.TermRepo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt-core Show documentation
Show all versions of jt-core Show documentation
`jt-core` is a java/scala communication processing library for JT808/JT809/JT1078 standard.
The newest version!
/*******************************************************************************
* Copyright (c) 2019, 2020 lucendar.com.
* All rights reserved.
*
* Contributors:
* KwanKin Yau ([email protected]) - initial API and implementation
*******************************************************************************/
package info.gratour.adaptor;
import info.gratour.jtmodel.TermBrief;
import info.gratour.jtmodel.term.UpdateTermAVAttrsReq;
public interface TermRepo {
enum TermRegResult {
OK,
VEH_NOT_FOUND,
TERM_NOT_FOUND,
VEH_REGISTERED,
TERM_REGISTERED;
public boolean isOk() {
return this == OK;
}
}
TermRegResult termRegister(String simNo, String plateNo, int plateColor, String authCode);
enum TermUnregResult {
OK,
TERM_NOT_FOUND;
public boolean isOk() {
return this == OK;
}
}
TermUnregResult termUnregister(String simNo);
/**
*
* @param simNo sim num of terminal
* @return null if not found
*/
String qryTermAuthCode(String simNo);
/**
*
* @param simNo sim num of terminal
* @return Terminal brief information
*/
TermBrief qryTermBrief(String simNo);
boolean updateTermAVAttrs(UpdateTermAVAttrsReq req);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy