package org.irmacard.api.common;


public class ClientRequest<T> {
	private int timeout = 0;
	private String data;
	private T request;

	public ClientRequest() {}

	public ClientRequest(String data, T request) {
		this.request = request;
		this.data = data;
	}

	public ClientRequest(String data, T request, int timeout) {
		this.timeout = timeout;
		this.request = request;
		this.data = data;
	}

	public int getTimeout() {
		return timeout;
	}

	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}

	public T getRequest() {
		return request;
	}

	public String getData() {
		return data;
	}
}

@@ -127,16 +127,45 @@
 request;
+%0A%09private String callbackUrl;
 %0A%0A%09publi
@@ -413,32 +413,243 @@
 ata = data;%0A%09%7D%0A%0A
+%09public ClientRequest(String data, T request, int timeout, String callbackUrl) %7B%0A%09%09this(data, request, timeout);%0A%09%09this.callbackUrl = callbackUrl;%0A%09%7D%0A%0A%09public String getCallbackUrl() %7B%0A%09%09return callbackUrl;%0A%09%7D%0A%0A
 %09public int getT

Add support for callback urls