SDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy
[profile/ivi/smartdevicelink.git] / SDL_Android / SmartDeviceLinkProxyAndroid / src / com / smartdevicelink / protocol / ProtocolMessage.java
index 06668f2..945c683 100755 (executable)
-//
-// Copyright (c) 2013 Ford Motor Company
-//
-package com.smartdevicelink.protocol;
-
-import com.smartdevicelink.protocol.enums.MessageType;
-import com.smartdevicelink.protocol.enums.SessionType;
-
-public class ProtocolMessage {
-       private byte version = 1;
-       private SessionType _sessionType = SessionType.RPC;
-       private MessageType _messageType = MessageType.UNDEFINED;
-       private byte _sessionID = 0;
-       private byte _rpcType;
-       private int _functionID;
-       private int _correlationID;
-       private int _jsonSize;
-       
-       private byte[] _data = null;
-       private byte[] _bulkData = null;
-       
-       public ProtocolMessage() {}
-
-       public byte getVersion() {
-               return version;
-       }
-
-       public void setVersion(byte version) {
-               this.version = version;
-       }
-
-       public byte getSessionID() {
-               return _sessionID;
-       }
-
-       public void setSessionID(byte sessionID) {
-               this._sessionID = sessionID;
-       }
-
-       public byte[] getData() {
-               return _data;
-       }
-
-       public void setData(byte[] data) {
-               this._data = data;
-               this._jsonSize = data.length;
-       }
-
-       public byte[] getBulkData() {
-               return _bulkData;
-       }
-
-       public void setBulkData(byte[] bulkData) {
-               if (this._bulkData != null)
-                       this._bulkData = null;
-               this._bulkData = new byte[bulkData.length];
-               System.arraycopy(bulkData, 0, this._bulkData, 0, bulkData.length);
-               //this._bulkData = bulkData;
-       }
-
-       public SessionType getSessionType() {
-               return _sessionType;
-       }
-
-       public void setSessionType(SessionType sessionType) {
-               this._sessionType = sessionType;
-       }
-
-       public MessageType getMessageType() {
-               return _messageType;
-       }
-
-       public void setMessageType(MessageType messageType) {
-               this._messageType = messageType;
-       }
-       
-       public byte getRPCType() {
-               return _rpcType;
-       }
-       
-       public void setRPCType(byte _rpcType) {
-               this._rpcType = _rpcType;
-       }
-       
-       public int getFunctionID() {
-               return _functionID;
-       }
-       
-       public void setFunctionID(int _functionID) {
-               this._functionID = _functionID;
-       }
-       
-       public int getCorrID() {
-               return _correlationID;
-       }
-       
-       public void setCorrID(int _correlationID) {
-               this._correlationID = _correlationID;
-       }
-
-       public int getJsonSize() {
-               return _jsonSize;
-       }
-
-       public void setJsonSize(int _jsonSize) {
-               this._jsonSize = _jsonSize;
-       }
-} // end-class
+package com.smartdevicelink.protocol;\r
+\r
+import com.smartdevicelink.protocol.enums.MessageType;\r
+import com.smartdevicelink.protocol.enums.SessionType;\r
+\r
+public class ProtocolMessage {\r
+       private byte version = 1;\r
+       private SessionType _sessionType = SessionType.RPC;\r
+       private MessageType _messageType = MessageType.UNDEFINED;\r
+       private byte _sessionID = 0;\r
+       private byte _rpcType;\r
+       private int _functionID;\r
+       private int _correlationID;\r
+       private int _jsonSize;\r
+       \r
+       private byte[] _data = null;\r
+       private byte[] _bulkData = null;\r
+       \r
+       public ProtocolMessage() {}\r
+\r
+       public byte getVersion() {\r
+               return version;\r
+       }\r
+\r
+       public void setVersion(byte version) {\r
+               this.version = version;\r
+       }\r
+\r
+       public byte getSessionID() {\r
+               return _sessionID;\r
+       }\r
+\r
+       public void setSessionID(byte sessionID) {\r
+               this._sessionID = sessionID;\r
+       }\r
+\r
+       public byte[] getData() {\r
+               return _data;\r
+       }\r
+\r
+       public void setData(byte[] data) {\r
+               this._data = data;\r
+               this._jsonSize = data.length;\r
+       }\r
+\r
+       public byte[] getBulkData() {\r
+               return _bulkData;\r
+       }\r
+\r
+       public void setBulkData(byte[] bulkData) {\r
+               if (this._bulkData != null)\r
+                       this._bulkData = null;\r
+               this._bulkData = new byte[bulkData.length];\r
+               System.arraycopy(bulkData, 0, this._bulkData, 0, bulkData.length);\r
+               //this._bulkData = bulkData;\r
+       }\r
+\r
+       public SessionType getSessionType() {\r
+               return _sessionType;\r
+       }\r
+\r
+       public void setSessionType(SessionType sessionType) {\r
+               this._sessionType = sessionType;\r
+       }\r
+\r
+       public MessageType getMessageType() {\r
+               return _messageType;\r
+       }\r
+\r
+       public void setMessageType(MessageType messageType) {\r
+               this._messageType = messageType;\r
+       }\r
+       \r
+       public byte getRPCType() {\r
+               return _rpcType;\r
+       }\r
+       \r
+       public void setRPCType(byte _rpcType) {\r
+               this._rpcType = _rpcType;\r
+       }\r
+       \r
+       public int getFunctionID() {\r
+               return _functionID;\r
+       }\r
+       \r
+       public void setFunctionID(int _functionID) {\r
+               this._functionID = _functionID;\r
+       }\r
+       \r
+       public int getCorrID() {\r
+               return _correlationID;\r
+       }\r
+       \r
+       public void setCorrID(int _correlationID) {\r
+               this._correlationID = _correlationID;\r
+       }\r
+\r
+       public int getJsonSize() {\r
+               return _jsonSize;\r
+       }\r
+\r
+       public void setJsonSize(int _jsonSize) {\r
+               this._jsonSize = _jsonSize;\r
+       }\r
+} // end-class
\ No newline at end of file