// Path: app/src/main/java/com/cxsj/runhdu/bean/gson/Status.java
// public class Status {
//     @SerializedName("Result")
//     private boolean result;
// 
//     @SerializedName("Message")
//     private String message;
// 
//     @SerializedName("Which")
//     private int which;
// 
//     public boolean getResult() {
//         return result;
//     }
// 
//     public String getMessage() {
//         return message;
//     }
// 
//     public int getWhich() {
//         return which;
//     }
// 
// }


import com.cxsj.runhdu.bean.gson.Status;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
package com.cxsj.runhdu.utils;


/**
 * Created by Sail on 2017/5/21 0021.
 * 返回的状态类JSON检查。
 */

public class StatusJsonCheckHelper {
    public interface CheckCallback {
        void onPass();

        void onFailure(String msg, int which);
    }

    public static void check(String json, CheckCallback callback) {
        Status status = null;
        try {
// Path: app/src/main/java/com/cxsj/runhdu/bean/gson/Status.java
// public class Status {
//     @SerializedName("Result")
//     private boolean result;
// 
//     @SerializedName("Message")
//     private String message;
// 
//     @SerializedName("Which")
//     private int which;
// 
//     public boolean getResult() {
//         return result;
//     }
// 
//     public String getMessage() {
//         return message;
//     }
// 
//     public int getWhich() {
//         return which;
//     }
// 
// }


// Path: app/src/main/java/com/cxsj/runhdu/utils/StatusJsonCheckHelper.java
import com.cxsj.runhdu.bean.gson.Status;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;

package com.cxsj.runhdu.utils;


/**
 * Created by Sail on 2017/5/21 0021.
 * 返回的状态类JSON检查。
 */

public class StatusJsonCheckHelper {
    public interface CheckCallback {
        void onPass();

        void onFailure(String msg, int which);
    }

    public static void check(String json, CheckCallback callback) {
        Status status = null;
        try {
            status = new Gson().fromJson(json, Status.class);