public < B extends BackendObject > Observable < Collection < B > > get ( final Class < B > type , final Collection < String > objects ) { return Observable . create ( new Observable . OnSubscribe < Collection < B > > ( ) { @ Override public void call ( Subscriber < ? super Collection < B > > observer ) { try { observer . onNext ( convertRequest ( getArrayType ( type ) , getWebService ( ) . get ( isLoggedIn ( ) , Query . safeTable ( type ) , objects ) ) ) ; observer . onCompleted ( ) ; } catch ( Exception e ) { observer . onError ( e ) ; } } } ) . subscribeOn ( config . subscribeOn ( ) ) . observeOn ( config . observeOn ( ) ) ; }
Function used to return specific objects corrosponding to the object keys provided .