diff --git a/app/src/main/java/org/ntlab/acanthus_client/views/paint/models/InvitesConnectionModel.java b/app/src/main/java/org/ntlab/acanthus_client/views/paint/models/InvitesConnectionModel.java index 09c4c66..a014d0c 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/views/paint/models/InvitesConnectionModel.java +++ b/app/src/main/java/org/ntlab/acanthus_client/views/paint/models/InvitesConnectionModel.java @@ -39,17 +39,22 @@ // 新しい編集者の追加(POST) public void inviteNewEditor(Integer invitedUid) { final InvitesRest invitesRest = retrofit.create(InvitesRest.class); - Integer owner = 1; - String token = "abc0"; - int dummy = 1111; //----------------------------------------------------------------- // 招待リクエストを送るAPI - Call call = invitesRest.addInvite(dummy, owner.toString(), invitedUid.toString(), token); + // Call call = invitesRest.addInvite( + // acanthus.getAid(), acanthus.getPreferenceUid().toString(), + // invitedUid.toString(), acanthus.getPreferenceToken()); + + Integer owner = 1; + String token = "abc0"; + int dummyAid = 1111; + + Call call = invitesRest.addInvite(dummyAid, owner.toString(), invitedUid.toString(), token); call.enqueue(new Callback() { @Override public void onResponse(Call call, Response response) { - if(response.isSuccessful()); + if (response.isSuccessful()) ; } @Override