質問編集履歴
1
誤字、不要記載の削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
public String ob;
|
28
28
|
}
|
29
29
|
|
30
|
-
処理するJSON種類の判定はresultの内容で判断でき
|
30
|
+
処理するJSON種類の判定はresultの内容で判断できればと思っています。
|
31
31
|
result = "success" の時 ApiResultResponseで受ける
|
32
32
|
result = "validation" の時 ApivalidResponseで受ける
|
33
33
|
result = "Maintenance" の時 ApiMaintenanceResponseで受ける
|
@@ -55,9 +55,8 @@
|
|
55
55
|
System.out.println(call.request().url());
|
56
56
|
if (response.code() == 200){
|
57
57
|
|
58
|
-
//現在は単一ですが、ここでresponse.resultの内容で数種類のResponseとResponseのデータ処理を切り分ける
|
58
|
+
//現在は単一ですが、ここでresponse.resultの内容で数種類のResponseとResponseのデータ処理を切り分ける想定
|
59
59
|
//↓↓↓↓
|
60
|
-
//List<Event> events = response.body().getEvents();
|
61
60
|
List<ApiResultInterface> datas = response.body().data;
|
62
61
|
|
63
62
|
for (ApiResultInterface items : datas){
|