158 lines
4.8 KiB
Java
158 lines
4.8 KiB
Java
package com.safemobile.lib;
|
|
|
|
public class OperationCodes {
|
|
|
|
/* TCP MSG EVENTS CODES */
|
|
|
|
/** Login Request
|
|
* @param username
|
|
* @param password values must be MD5 */
|
|
public static final int CONNECTION_REQ = 19;
|
|
public static final int CONNECTION_REP = 219;
|
|
|
|
|
|
/** Get contacts from radio */
|
|
public static final int CONTACTS_REQ = 26;
|
|
public static final int CONTACTS_REP = 226;
|
|
|
|
|
|
public static final int UNIT_STATUS_UPDATE = 250;
|
|
|
|
|
|
|
|
|
|
/** Send a new sms to a unit
|
|
* @param seqID a unique identifier for the message
|
|
* @param sc_id units imei to which you send the sms
|
|
* @param txt the text message that you want to send*/
|
|
public static final int SEND_TM = 24;
|
|
public static final int TM_ACK = 224;
|
|
public static final int TM_ACK_SD = 242;
|
|
|
|
|
|
/** Get radio status that tells if it's online or offline
|
|
* @param gwID gateway id
|
|
* @param rgwID radio gateway id */
|
|
public static final int RADIO_STATUS_REQ = 99;
|
|
public static final int RADIO_STATUS_REP = 199;
|
|
public static final int RADIO_STATUS_BRDCST = 200;
|
|
|
|
|
|
/** change zone and channels
|
|
* @param gwID gateway id
|
|
* @param rgwID radio gateway id
|
|
* @param zoneNR desired zone number
|
|
* @param channelNR desired channel number */
|
|
public static final int CHANNEL_QUERY_REQ = 104;
|
|
public static final int CHANNEL_BRDCST = 204;
|
|
|
|
|
|
/** Reset the Bridge */
|
|
public static final int BRIDGE_RESET = 98;
|
|
|
|
|
|
/** PING-PONG */
|
|
public static final int PING = 91;
|
|
public static final int PONG = 92;
|
|
|
|
/** Emergency request
|
|
* @param value this will select to activate or deactivate alarm (TRUE = activate) */
|
|
public static final int EMERGENCY_REQ = 130;
|
|
public static final int EMERGENCY_REP = 230;
|
|
|
|
/** Initiated a call
|
|
* @param callType this will select the type of the call (All, Private or Group Call)
|
|
* @param radioID the contact to which the call is made */
|
|
public static final int SEND_PTT = 1313;
|
|
public static final int CALL_STATUS_BRDCST = 126;
|
|
|
|
/** Change the call type for external mic initiated calls
|
|
* @param callType this will select the type of the call (All, Private or Group Call)
|
|
* @param radioID the contact to which the call is made */
|
|
public static final int CALL_TYPE_REQ = 161;
|
|
public static final int CALL_TYPE_REP = 171;
|
|
|
|
/** Terminate a call */
|
|
public static final int DEKEY_REQ = 160;
|
|
|
|
|
|
/** Request the list of all messages
|
|
* @param timeGMTStart first message time (all messages will be newer than this time) */
|
|
public static final int TM_LIST_REQ = 25;
|
|
public static final int TM_LIST_REP = 225;
|
|
|
|
|
|
/** Request the list of all recordings
|
|
* @param timeGMTStart first message time (all messages will be newer than this time) */
|
|
public static final int RECORDINGS_LIST_REQ = 27;
|
|
public static final int RECORDINGS_LIST_REP = 227;
|
|
|
|
|
|
/** Request a recording to be played */
|
|
public static final int RECORDING_REQ = 28;
|
|
public static final int RECORDING_REP = 228;
|
|
|
|
/** A SMS is received */
|
|
public static final int RECEIVED_TM = 132;
|
|
|
|
|
|
/** Notification was clicked to display the received TM */
|
|
public static final int MESSAGE_NOTIFICATION_CLICKED = 690;
|
|
|
|
|
|
/** get tcp connection from service */
|
|
public static final int TCP_CONNECTION_REQ = 678;
|
|
public static final int TCP_CONNECTION_UP = 679;
|
|
public static final int TCP_CONNECTION_DOWN = 677;
|
|
|
|
/** operation code needed to change the Radio ID in radioTAB */
|
|
public static final int RADIOID_CHANGED = 888;
|
|
|
|
|
|
/** operation code needed when a bluetooth is tethered or not */
|
|
public static final int BLUETOOTH_TETHER = 901;
|
|
|
|
/** get vehicles for an user id
|
|
* @param USERID Logged in user id */
|
|
public static final int GetVehicles = 2;
|
|
|
|
/** get radios list from App Server */
|
|
public static final int GetRadiosList = 3;
|
|
|
|
/** get vehicles last positions
|
|
* @param USERID Logged in user id */
|
|
public static final int GetLastPositions = 4;
|
|
|
|
/** get the last sms for all the vehicles */
|
|
public static final int GetLastSMS = 5;
|
|
|
|
/** get sms for a specific vehicle newer than a date
|
|
* @param sc_id vehicle imei for which we wish the list of sms
|
|
* @param timeGMT the unix time from the last sms in the grid */
|
|
public static final int GetRecentSMSs = 6;
|
|
|
|
/** enable/ disable vehicle status or poll it
|
|
* @param radioCode
|
|
* @param opCode
|
|
* @param sc_id vehicle imei
|
|
* @param enable */
|
|
public static final int Option4Unit = 8;
|
|
|
|
|
|
/** get alarms for an user id
|
|
* @param USERID Logged in user id */
|
|
public static final int GetAlarms = 9;
|
|
|
|
/** acknoledge an alarm based on it's index and type
|
|
* @param idx alarm's index in the DB
|
|
* @param type alarm's type as shown in the grid*/
|
|
public static final int SendAlarmAcknoledge = 10;
|
|
|
|
/** get history position for a specific vehicle
|
|
* @param sc_id vehicle's imei
|
|
* @param timeGMTStart history start date in unixtime
|
|
* @param timeGMTStop history end date in unixtime*/
|
|
public static final int GetHistoryPositions = 11;
|
|
|
|
}
|