List of usage examples for com.google.gson GsonBuilder create
public Gson create()
From source file:com.ccc.crest.core.cache.crest.map.RegionCollection.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(RegionCollection.class, new RegionCollection()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, RegionCollection.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh); //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }
From source file:com.ccc.crest.core.cache.crest.map.Stargate.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(Stargate.class, new Stargate()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, Stargate.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh); //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }
From source file:com.ccc.crest.core.cache.crest.map.Station.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(Station.class, new Station()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, Station.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh); //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }
From source file:com.ccc.crest.core.cache.crest.map.SystemCollection.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(SystemCollection.class, new SystemCollection()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, SystemCollection.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh); //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }
From source file:com.ccc.crest.core.cache.crest.market.MarketGroupCollection.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(MarketGroupCollection.class, new MarketGroupCollection()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, MarketGroupCollection.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh); //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }
From source file:com.ccc.crest.core.cache.crest.market.MarketTypeCollection.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(MarketTypeCollection.class, new MarketTypeCollection()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, MarketTypeCollection.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh); //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }
From source file:com.ccc.crest.core.cache.crest.market.MarketTypePriceCollection.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(MarketTypePriceCollection.class, new MarketTypePriceCollection()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, MarketTypePriceCollection.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh); //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }
From source file:com.ccc.crest.core.cache.crest.opportunity.OpportunityGroupsCollection.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(OpportunityGroupsCollection.class, new OpportunityGroupsCollection()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, OpportunityGroupsCollection.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh);/*from www .jav a2 s. co m*/ //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }
From source file:com.ccc.crest.core.cache.crest.opportunity.OpportunityTasksCollection.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(OpportunityTasksCollection.class, new OpportunityTasksCollection()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, OpportunityTasksCollection.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh);/*w ww.j av a 2s . c o m*/ //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }
From source file:com.ccc.crest.core.cache.crest.schema.endpoint.EndpointCollection.java
License:Open Source License
public static Future<EveData> getFuture(CrestResponseCallback callback) throws Exception { GsonBuilder gson = new GsonBuilder(); gson.registerTypeAdapter(EndpointCollection.class, new EndpointCollection()); //@formatter:off CrestRequestData rdata = new CrestRequestData(null, getUrl(), gson.create(), null, EndpointCollection.class, callback, ReadScope, getVersion(VersionType.Get), continueRefresh, false); //@formatter:on return CrestController.getCrestController().crestClient.getCrest(rdata); }