Package com.kdubb.retrofitexamples.api

Examples of com.kdubb.retrofitexamples.api.AsynchronousApi


 
    // Create an instance of our InterestingApi interface.
    InterestingApi synchronousApi = restAdapter.create(InterestingApi.class);
   
      // Create an instance of our AsynchronousApi interface.
    AsynchronousApi asyncApi = restAdapter.create(AsynchronousApi.class);
   
    for(int i = 0; i < 10; i++)
      LOG.info("synchronousApi " + synchronousApi.getWithPath(Integer.toString(i)));
   
    for(int i = 0; i < 10; i++)
      asyncApi.getWithPath(Integer.toString(i), new Callback<String>() {

        @Override
        public void success(String t, Response response) {
          LOG.info("asynchronousApi (" + t + ")");
        }
View Full Code Here

TOP

Related Classes of com.kdubb.retrofitexamples.api.AsynchronousApi

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.