Package org.nfctools.ndef.wkt.records

Examples of org.nfctools.ndef.wkt.records.GcActionRecord


  @Override
  public WellKnownRecord decodePayload(byte[] payload, NdefMessageDecoder messageDecoder) {
    byte actionFlag = payload[0];

    GcActionRecord actionRecord = null;

    if ((actionFlag & GcActionRecord.NUMERIC_CODE) != 0) {
      Action action = Action.getActionByValue(payload[1]);
      actionRecord = new GcActionRecord(action);
    }
    else {

      Record record = messageDecoder.decodeToRecord(payload, 1, payload.length - 1);
      actionRecord = new GcActionRecord(record);
    }
    return actionRecord;
  }
View Full Code Here

TOP

Related Classes of org.nfctools.ndef.wkt.records.GcActionRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.