public List < DataStore > getDataStores ( ) { return invoke ( DATA_STORES , new RequestClosure < JsonArray > ( ) { @ Override public JsonArray call ( Invocation . Builder request ) { return request . get ( JsonArray . class ) ; } } , new ResponseClosure < JsonArray , List < DataStore > > ( ) { @ Override public List < DataStore > call ( JsonArray json ) { List < DataStore > ds = new ArrayList < DataStore > ( json . size ( ) ) ; for ( int k = 0 ; k < json . size ( ) ; ++ k ) { ds . add ( new DataStore ( json . getJsonObject ( k ) ) ) ; } return ds ; } } ) ; }
Retrieves all data stores .