Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String retreiveEndpoint(String fullExternalDatapoint) {
- if (fullExternalDatapoint == null) return null;
- String externalDatapoint = fullExternalDatapoint;
- switch(fullExternalDatapoint) {
- case 'P006-40170891-O-41':
- return "+AAR+LWA+CVY_SEND";
- }
- if (externalDatapoint.length() > 13) {
- externalDatapoint = fullExternalDatapoint.substring(0,13);
- }
- switch(externalDatapoint) {
- case 'P006-35170342':
- return "+AAR+FLS+M442=FLA_SEND";
- case 'P006-35170443':
- return "+AAR+FLS+M443=FLA_SEND";
- case 'P006-35170545':
- return "+AAR+FLS+M445=FLA_SEND";
- case 'P006-35170646':
- return "+AAR+FLS+M446=FLA_SEND";
- case 'P006-35170749':
- return "+AAR+FLS+M449=FLA_SEND";
- case 'P006-11150101':
- return "+AAR+COAT+M490_SEND";
- case 'P006-12180661':
- return "+AAR+EXT+M461_SEND";
- case 'P006-12180762':
- return "+AAR+EXT+M462_SEND";
- case 'P006-40180690':
- return "+AAR+EXT=DOWN=LIN_SEND";
- case 'P006-30180115':
- return "+AAR+ERF+M415=PRI_SEND";
- case 'P006-30170109':
- return "+AAR+CONV+M009=PRI_SEND";
- case 'P006-30170211':
- return "+AAR+CONV+M411=PRI_SEND";
- case 'P006-40170891':
- return "+AAR+FLS=DOWN=LIN_SEND";
- default:
- return externalDatapoint;
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement