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());

    }
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.
@param type Type of objects to be returned, if an object of a key provided does not match Type, it will not be returned.
@param objects Collection of keys you wish to return from remote server.
@param <B> Class type to be returned, extends BackendObject.
@return Collection of objects corrosponding to keys provided.