public List < LoadZone > getLoadZone ( ) { return invoke ( LOAD_ZONES , new RequestClosure < JsonArray > ( ) { @ Override public JsonArray call ( Invocation . Builder request ) { return request . get ( JsonArray . class ) ; } } , new ResponseClosure < JsonArray , List < LoadZone > > ( ) { @ Override public List < LoadZone > call ( JsonArray json ) { List < LoadZone > zones = new ArrayList < LoadZone > ( json . size ( ) ) ; for ( int k = 0 ; k < json . size ( ) ; ++ k ) { zones . add ( LoadZone . valueOf ( json . getJsonObject ( k ) ) ) ; } return zones ; } } ) ; }
Retrieves all load - zones .