// Path: osgi.enroute.trains.api/src/osgi/enroute/trains/cloud/api/Observation.java
// public class Observation extends DTO {
// 	public final static String TOPIC = "osgi/trains/observation";
// 
// 	public enum Type {
// 		CHANGE, //
// 		/**
// 		 * Detected an RFID
// 		 */
// 		LOCATED, 
// 		/**
// 		 * Assignment changed
// 		 */
// 		ASSIGNMENT, 
// 		/**
// 		 * Assignment reached
// 		 */
// 		ASSIGNMENT_REACHED,
// 		/**
// 		 * Signal changed color
// 		 */
// 		SIGNAL,
// 		/**
// 		 * Switched changed alternate state
// 		 */
// 		SWITCH,
// 		/**
// 		 * A segment is blocked 
// 		 */
// 		BLOCKED,
// 		/**
// 		 * A segment is dark
// 		 */
// 		DARK,
// 		/**
// 		 * A train emergency occurs
// 		 */
// 		EMERGENCY
// 		
// 	}
// 
// 	public Type type;
// 	public String segment;
// 	public String train;
// 	public Color signal;
// 	public String assignment;
// 	public long time;
// 	public long id;
// 	public String message;
// 	public boolean alternate;
// 	public boolean blocked;
// 	public boolean dark;
// 	public boolean emergency;
// }


import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URL;
import java.net.URLEncoder;
import java.util.List;
import org.osgi.service.component.annotations.Reference;
import aQute.lib.converter.TypeReference;
import aQute.lib.json.Decoder;
import aQute.lib.json.JSONCodec;
import osgi.enroute.dto.api.DTOs;
import osgi.enroute.trains.cloud.api.Observation;
package osgi.enroute.trains.rest.client;




public class TrackClient {
	static JSONCodec codec = new JSONCodec();
// Path: osgi.enroute.trains.api/src/osgi/enroute/trains/cloud/api/Observation.java
// public class Observation extends DTO {
// 	public final static String TOPIC = "osgi/trains/observation";
// 
// 	public enum Type {
// 		CHANGE, //
// 		/**
// 		 * Detected an RFID
// 		 */
// 		LOCATED, 
// 		/**
// 		 * Assignment changed
// 		 */
// 		ASSIGNMENT, 
// 		/**
// 		 * Assignment reached
// 		 */
// 		ASSIGNMENT_REACHED,
// 		/**
// 		 * Signal changed color
// 		 */
// 		SIGNAL,
// 		/**
// 		 * Switched changed alternate state
// 		 */
// 		SWITCH,
// 		/**
// 		 * A segment is blocked 
// 		 */
// 		BLOCKED,
// 		/**
// 		 * A segment is dark
// 		 */
// 		DARK,
// 		/**
// 		 * A train emergency occurs
// 		 */
// 		EMERGENCY
// 		
// 	}
// 
// 	public Type type;
// 	public String segment;
// 	public String train;
// 	public Color signal;
// 	public String assignment;
// 	public long time;
// 	public long id;
// 	public String message;
// 	public boolean alternate;
// 	public boolean blocked;
// 	public boolean dark;
// 	public boolean emergency;
// }


// Path: osgi.enroute.trains.rest.provider/src/osgi/enroute/trains/rest/client/TrackClient.java
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URL;
import java.net.URLEncoder;
import java.util.List;
import org.osgi.service.component.annotations.Reference;
import aQute.lib.converter.TypeReference;
import aQute.lib.json.Decoder;
import aQute.lib.json.JSONCodec;
import osgi.enroute.dto.api.DTOs;
import osgi.enroute.trains.cloud.api.Observation;

package osgi.enroute.trains.rest.client;




public class TrackClient {
	static JSONCodec codec = new JSONCodec();
	static TypeReference<List<Observation>> LISTOBSERVATIONS = new TypeReference<List<Observation>>() {};