// Path: app/src/main/java/com/leelit/stuer/constant/NetConstant.java
// public class NetConstant {
// 
//     public static final int NET_ERROR_RECORD_EXISTED = 601;
// 
//     //    public static final String HOST = "http://192.168.191.1:8080/STUer/";
//     public static final String HOST = "http://stuer.applinzi.com/";
// 
//     public static final String IMAGE_HOST = "http://stuer-picture.stor.sinaapp.com/";
// 
// }
// 
// Path: app/src/main/java/com/leelit/stuer/utils/SupportModelUtils.java
// public class SupportModelUtils {
// 
//     public static final String HOST = NetConstant.HOST;
// 
// 
//     /**
//      * 默认线程处理方式
//      *
//      * @param observable
//      * @param subscriber
//      */
//     public static void toSubscribe(Observable observable, Subscriber subscriber) {
//         observable.subscribeOn(Schedulers.io())
//                 .observeOn(AndroidSchedulers.mainThread())
//                 .subscribe(subscriber);
//     }
// }


import com.leelit.stuer.constant.NetConstant;
import com.leelit.stuer.utils.SupportModelUtils;
import okhttp3.ResponseBody;
import retrofit2.GsonConverterFactory;
import retrofit2.Retrofit;
import retrofit2.RxJavaCallAdapterFactory;
import rx.Subscriber;
package com.leelit.stuer;



/**
 * Created by Leelit on 2016/3/31.
 */
public class UpdateModel {

    public static final String BASE_URL = NetConstant.HOST;

// Path: app/src/main/java/com/leelit/stuer/constant/NetConstant.java
// public class NetConstant {
// 
//     public static final int NET_ERROR_RECORD_EXISTED = 601;
// 
//     //    public static final String HOST = "http://192.168.191.1:8080/STUer/";
//     public static final String HOST = "http://stuer.applinzi.com/";
// 
//     public static final String IMAGE_HOST = "http://stuer-picture.stor.sinaapp.com/";
// 
// }
// 
// Path: app/src/main/java/com/leelit/stuer/utils/SupportModelUtils.java
// public class SupportModelUtils {
// 
//     public static final String HOST = NetConstant.HOST;
// 
// 
//     /**
//      * 默认线程处理方式
//      *
//      * @param observable
//      * @param subscriber
//      */
//     public static void toSubscribe(Observable observable, Subscriber subscriber) {
//         observable.subscribeOn(Schedulers.io())
//                 .observeOn(AndroidSchedulers.mainThread())
//                 .subscribe(subscriber);
//     }
// }


// Path: app/src/main/java/com/leelit/stuer/UpdateModel.java
import com.leelit.stuer.constant.NetConstant;
import com.leelit.stuer.utils.SupportModelUtils;
import okhttp3.ResponseBody;
import retrofit2.GsonConverterFactory;
import retrofit2.Retrofit;
import retrofit2.RxJavaCallAdapterFactory;
import rx.Subscriber;

package com.leelit.stuer;



/**
 * Created by Leelit on 2016/3/31.
 */
public class UpdateModel {

    public static final String BASE_URL = NetConstant.HOST;

    private UpdateService mService = new Retrofit.Builder()