SubwayTooter-Android-App/app/src/main/java/jp/juggler/subwaytooter/api/TootApiResult.java

35 lines
814 B
Java
Raw Normal View History

2017-04-20 18:23:59 +02:00
package jp.juggler.subwaytooter.api;
import org.json.JSONArray;
import org.json.JSONObject;
2017-04-23 07:42:09 +02:00
import okhttp3.Response;
2017-04-20 18:23:59 +02:00
public class TootApiResult {
public String error;
public JSONObject object;
public JSONArray array;
public String json;
public JSONObject token_info;
2017-04-23 07:42:09 +02:00
public Response response;
2017-04-20 18:23:59 +02:00
public TootApiResult( String error ){
this.error = error;
}
2017-04-23 07:42:09 +02:00
public TootApiResult( Response response,JSONObject token_info,String json,JSONObject object ){
this.token_info = token_info;
2017-04-20 18:23:59 +02:00
this.json = json;
this.object = object;
2017-04-23 07:42:09 +02:00
this.response = response;
2017-04-20 18:23:59 +02:00
}
2017-04-23 07:42:09 +02:00
public TootApiResult( Response response, JSONObject token_info, String json, JSONArray array ){
this.token_info = token_info;
2017-04-20 18:23:59 +02:00
this.json = json;
this.array = array;
2017-04-23 07:42:09 +02:00
this.response = response;
2017-04-20 18:23:59 +02:00
}
}