diff --git a/app/src/main/java/com/example/nemophila/MyPageActivity.java b/app/src/main/java/com/example/nemophila/MyPageActivity.java index b8cad95..131f618 100644 --- a/app/src/main/java/com/example/nemophila/MyPageActivity.java +++ b/app/src/main/java/com/example/nemophila/MyPageActivity.java @@ -114,7 +114,7 @@ public void onClick(DialogInterface dialogInterface, int i) { Toast.makeText(MyPageActivity.this, "投稿を削除しました。", Toast.LENGTH_SHORT).show(); System.out.println("投稿を削除しました。"); - accountViewModel.deleteAccountPost(dataModel.getSid(), uid, dataModel.getPid(), token); + accountViewModel.deleteAccountPost(uid, dataModel.getPid(), token); } }) .setNegativeButton("No", null) @@ -149,7 +149,6 @@ data.setRate(strRate); data.setGenre(post.getGenre()); data.setComment(post.getComment()); - data.setSid(post.getSid()); data.setPid(post.getPid()); myPageActDataset.add(data); } @@ -223,7 +222,6 @@ private String rate; private String genre; private String comment; - private String sid; private String pid; public String getDate() { @@ -254,9 +252,6 @@ this.comment = comment; } - public String getSid() { return sid; } - public void setSid(String sid) { this.sid = sid; } - public String getPid() { return pid; } public void setPid(String sid) { this.pid = pid; } }