Class DmccResponse

java.lang.Object
com.cognex.cmbsdk.DmccResponse

public class DmccResponse extends Object
Represents a DMCC response from a connected device.
  • Method Details

    • getResponseId

      public int getResponseId()
      Returns the response identifier.
      Returns:
      The response id.
    • getStatusCode

      public int getStatusCode()
      Returns:
      the DMCC status code
    • getPayLoad

      public String getPayLoad()
      Returns the payload content.
      Returns:
      The payload content.
    • getBinaryData

      public byte[] getBinaryData()
      Returns the binary data portion of the response.
      Returns:
      The binary data as a byte array.
    • getError

      public Exception getError()
      Returns an Exception object, that represents the error which occurred during the generation of this response. If there was no error, this method returns null.
      Returns:
      The Exception object that represents the error, or null if there was no error.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object