
MTCMSMessage Class Methods
This class allows building MagTek CMS messages to be used in communications with MagTek CMS devices.
MTCMSMessage
This constructor method builds an MTCMSMessage instance with the provided values.
public void MTCMSMessage(int messageType, int applicationID, int commandID, int dataTag, byte[] data)Parameters:
Parameter
Description
messageType
MessageType value
applicationID
ApplicationID value
commandID
CommandID value
dataTag
Data Tag value
data
Data value
Return Value: None
MTCMSMessage
This constructor method builds an MTCMSMessage instance with the provided byte array value.
public void MTCMSMessage(byte[] messageBytes)Parameters:
Parameter
Description
messageBytes
Message byte array value
Return Value: None
setMessageType
This method sets the value of MessageType.
Parameters:
Parameter
Description
messageType
MessageType value
Return Value: None
setApplicationID
This method sets the value of ApplciationID.
Parameters:
Parameter
Description
applicationID
ApplicationID value
Return Value: None
setCommandID
This method sets the value of CommandID.
Parameters:
Parameter
Description
commandID
CommandID value
Return Value: None
setResultCode
This method sets the value of ResultCode.
Parameters:
Parameter
Description
resultCode
ResultCode value
Return Value: None
setData
This method sets the value of Data Tag and the value of Data.
Parameters:
Parameter
Description
dataTag
Data Tag value
data
Data value
Return Value: None
getMessageType
This method returns the value of MessageType.
Return Value: MessageType value.
getApplicationID
This method returns the value of ApplicationID.
Return Value: ApplicationID value.
getCommandID
This method returns the value of CommandID.
Return Value: CommandID value.
getResultCode
This method returns the value of ResultCode.
Return Value: ResultCode value.
getDataTag
This method returns the value of Data Tag.
Return Value: Data Tag value.
getData
This method returns the value of Data.
Return Value: Data value.
getMessageBytes
This method returns the message bytes.
Return Value: Message bytes.

