package org.irmacard.androidcardproxy.messages;

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_EVENT_CARDFOUND = "cardFound";
	public static String NAME_EVENT_CARDLOST = "cardLost";
	public static String NAME_EVENT_CARDREADERFOUND = "cardReaderFound";
	public static String NAME_EVENT_STATUSUPDATE = "statusUpdate";
	

	
	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;		
	}
}

@@ -598,20 +598,23 @@
  = %22card
-Foun
+Inserte
 d%22;%0A%09pub
@@ -662,12 +662,15 @@
 card
-Lost
+Removed
 %22;%0A%09

Use Inserted/Removed instead of Found/Lost