Android Open Source - irma_android_cardproxy Reader Message






From Project

Back to project page irma_android_cardproxy.

License

The source code is released under:

GNU General Public License

If you think the Android project irma_android_cardproxy listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.irmacard.androidcardproxy.messages;
/*from  w  ww  . j  ava 2  s. c  o  m*/
public class ReaderMessage {
  public String type = null;
  public String name = null;
  public String id = null;
  public ReaderMessageArguments arguments = null;
  
  public static String TYPE_EVENT = "event";
  public static String TYPE_COMMAND = "command";
  public static String TYPE_RESPONSE = "response";
  
  public static String NAME_COMMAND_AUTHPIN = "authorizeWithPin";
  public static String NAME_COMMAND_TRANSMIT = "transmitCommandSet";
  public static String NAME_COMMAND_SELECTAPPLET = "selectApplet";
  public static String NAME_COMMAND_IDLE = "idle";

  public static String NAME_EVENT_CARDFOUND = "cardInserted";
  public static String NAME_EVENT_CARDLOST = "cardRemoved";
  public static String NAME_EVENT_CARDREADERFOUND = "cardReaderFound";
  public static String NAME_EVENT_STATUSUPDATE = "statusUpdate";
  public static String NAME_EVENT_TIMEOUT = "timeout";
  public static String NAME_EVENT_DONE = "done";

  public ReaderMessage(String type, String name) {
    this.type = type;
    this.name = name;
  }
  
  public ReaderMessage(String type, String name, String id) {
    this.type = type;
    this.name = name;
    this.id = id;
  }
  
  public ReaderMessage(String type, String name, String id, ReaderMessageArguments arguments) {
    this.type = type;
    this.name = name;
    this.id = id;
    this.arguments = arguments;    
  }

  public String toString() {
    return "<Type: " + type + ", name: " + name + ", id: " + id + ", arguments: " + arguments.toString() + ">";
  }
}




Java Source Code List

org.irmacard.androidcardproxy.ConfirmationDialogFragment.java
org.irmacard.androidcardproxy.MainActivity.java
org.irmacard.androidcardproxy.ProtocolCommandDeserializer.java
org.irmacard.androidcardproxy.ProtocolResponseSerializer.java
org.irmacard.androidcardproxy.messages.EventArguments.java
org.irmacard.androidcardproxy.messages.PinResultArguments.java
org.irmacard.androidcardproxy.messages.ReaderMessageArguments.java
org.irmacard.androidcardproxy.messages.ReaderMessageDeserializer.java
org.irmacard.androidcardproxy.messages.ReaderMessage.java
org.irmacard.androidcardproxy.messages.ResponseArguments.java
org.irmacard.androidcardproxy.messages.SelectAppletArguments.java
org.irmacard.androidcardproxy.messages.TransmitCommandSetArguments.java