public interface MSROperationResult extends OperationResult
MSROperationResult
interface represents the result of an operation performed by a Magnetic Stripe Reader (MSR) device.
This interface extends OperationResult
and is specifically tailored for MSR operations.
It is used to inform an application about the completion and outcome of a requested MSR operation.
The success or failure of the operation can be determined using the getResultCode()
method,
which returns standardized result codes defined in OperationResult
.
Modifier and Type | Field and Description |
---|---|
static int |
ERR_INVALIDMEDIA
Indicates that the media had invalid encoding.
|
static int |
ERR_NOMEDIA
Indicates that no media encoding was detected.
|
static int |
ERR_READFAIL
Indicates that encoded media was detected but could not be read.
|
CANCEL, ERR_DEVICE_BASE, ERR_GENERAL_ERROR, ERR_NO_INFO, ERR_NO_PERMISSION, ERR_TIMEOUT, NONE, SUCCESS
Modifier and Type | Method and Description |
---|---|
MSRTrackData |
getMSRTrackData()
Retrieves the data object of the magnetic stripe card.
|
getResultCode
static final int ERR_READFAIL
getResultCode()
.static final int ERR_INVALIDMEDIA
getResultCode()
.static final int ERR_NOMEDIA
getResultCode()
.MSRTrackData getMSRTrackData()
MSRTrackData
, representing the data read from the MSR.