diff --git a/app/src/main/java/org/ntlab/amaryllis/client/resources/VoicememosRest.java b/app/src/main/java/org/ntlab/amaryllis/client/resources/VoicememosRest.java index 6e8802c..05f898e 100644 --- a/app/src/main/java/org/ntlab/amaryllis/client/resources/VoicememosRest.java +++ b/app/src/main/java/org/ntlab/amaryllis/client/resources/VoicememosRest.java @@ -1,21 +1,30 @@ package org.ntlab.amaryllis.client.resources; +import org.ntlab.amaryllis.client.entities.Account; +import org.ntlab.amaryllis.client.entities.AccountDeleteResponse; + +import java.util.ArrayList; + import retrofit2.Call; +import retrofit2.http.DELETE; import retrofit2.http.FormUrlEncoded; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.Field; import retrofit2.http.PUT; +import retrofit2.http.Path; +import retrofit2.http.Query; public interface VoicememosRest { //全てのvidを取得 //@GET("voicememos") + //Call> getVoicememos(); //ボイスメモを追加します。 //@FormUrlEncoded //@POST("voicememos") - //Call PostVoicememos( + //Call PostVoicememos( //@Field("uid") String uid, //@Field("time") String time, //@Field("data") String data, @@ -25,4 +34,59 @@ //@Field("summary") String summary //); + //指定された投稿の情報を取得 + //@GET("voicememos/{vid}") + //Call VoicememosDetail( + //@Path("vid") String vid + //); + + //ボイスメモの削除 + //@DELETE("voicemomos/{vid}") + //Call VoicememosDelete( + //@Path("vid") String vid + //); + + //編集に必要な情報を取得 + //@GET("voicememos/{vid}/edit") + //Call VoicememosEdit( + //@Path("vid") String vid + //); + + //投稿の修正 + //@PUT("voicememos/{vid}/edit") + //Call VoicememosEditFix( + //@Path("vid") String vid, + //@Field("new_category") String new_category, + //@Field("new_title") String new_title, + //@Field("new_summary") String new_summary + //); + + //新規コメントの追加 + //@POST("voicememos/{vid}/comments") + //Call VoicememosComments( + //@Path("vid") String vid, + //@Field("uid") String uid, + //@Field("comment") String comment + //); + + //コメントの削除 + //@DELETE("voicememos/{vid}/comments/{commentsNo}") + //Call> VoicememosCommentsDelete( + //@Path("vid") String vid, + //@Path("commentNo") String commentNo + //); + + //favosの加算 + //@PUT("voicememos/{vid}/favos") + //Call VoicememosFavos( + //@Path("vid") String vid, + //@Field("uid") String uid + //); + + //timesの加算 + //@PUT("voicememos/{vid}/times") + //Call Voicememostimes( + //@Path("vid") String vid + //); + }