예제 #1
0
파일: Client.java 프로젝트: epy0n0ff/c88
 public Observable post(@NonNull String param) {
   return Observable.create(
           subscriber -> {
             ResponseJsonMapper mapper = new ResponseJsonMapper();
             subscriber.onNext(mapper.transformResponse(getService().post(param), Post.class));
             subscriber.onCompleted();
           })
       .compose(applySchedulers());
 }
예제 #2
0
파일: Client.java 프로젝트: epy0n0ff/c88
 public Observable internalServerError() {
   return Observable.create(
           subscriber -> {
             ResponseJsonMapper mapper = new ResponseJsonMapper();
             subscriber.onNext(
                 mapper.transformResponse(getService().getInternalServerError(), Post.class));
             subscriber.onCompleted();
           })
       .compose(applySchedulers());
 }