diff --git a/app/src/main/java/com/example/cosmosclient/entities/ToJoinGroupRetrofitMethods.java b/app/src/main/java/com/example/cosmosclient/entities/ToJoinGroupRetrofitMethods.java deleted file mode 100644 index 65bf3ae..0000000 --- a/app/src/main/java/com/example/cosmosclient/entities/ToJoinGroupRetrofitMethods.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.example.cosmosclient.entities; - -import android.content.Intent; -import android.support.v7.app.AppCompatActivity; -import android.widget.Toast; - -import com.example.cosmosclient.app.Cosmos; -import com.example.cosmosclient.resources.JoinGroupRest; -import com.example.cosmosclient.resources.UsersRest; -import com.example.cosmosclient.views.GroupListActivity; -import com.example.cosmosclient.views.JoinGroupActionsActivity; -import com.example.cosmosclient.views.SignupActivity; - -import retrofit2.Call; -import retrofit2.Callback; -import retrofit2.Response; -import retrofit2.Retrofit; -import retrofit2.converter.jackson.JacksonConverterFactory; -import retrofit2.http.Field; -import retrofit2.http.FormUrlEncoded; -import retrofit2.http.POST; -import retrofit2.http.Path; -import retrofit2.http.Query; - -public class ToJoinGroupRetrofitMethods extends AppCompatActivity { - public ToJoinGroupRetrofitMethods() { - - } -// public String runRetrofit() { -// //retrofitの処理 -// final Retrofit retrofit = new Retrofit.Builder() -// .baseUrl("http://nitta-lab-www.is.konan-u.ac.jp/cosmos/") -// .addConverterFactory(JacksonConverterFactory.create()) -// .build(); -// //interfaceから実装を取得 -// final JoinGroupRest joinGroupService = retrofit.create(JoinGroupRest.class); -// -// String gid="dnjewvhoirae"; -// String uid="dnjewvhfgoirae"; -// String token="dnjewvhoidgfrae"; -// //API呼び出しのための値入力 -// Call call = joinGroupService.JoinGroup(gid, uid, token); -// -// //サーバからデータ受け取り -// call.enqueue(new Callback() { -// //成功時 -// @Override -// public void onResponse(Call call, Response response) { -// if (response.isSuccessful()) { -// JoinGroupResponse result = response.body(); -// -// Cosmos app = (Cosmos) getApplication(); -// Intent intent = new Intent(getApplication(), GroupListActivity.class); -// -// //test -//// System.out.println(result.uId); -//// System.out.println(result.name); -//// System.out.println(result.uri); -//// System.out.println(result.token); -//// System.out.println(result.iconUri); -//// System.out.println(result.pw); -// -// //ここで成功の処理を記述 -// finish(); -// -// } else { -// //onFailureでキャッチできないエラー用 -// //ここでエラーの処理を記述 -// } -// } -// -// -// //失敗時 -// @Override -// public void onFailure(Call call, Throwable t) { -// String errertxt = "errer"; -// return errertxt; -// } -// }); -// } -}