retrofit.http.FormUrlEncoded Java Examples

The following examples show how to use retrofit.http.FormUrlEncoded. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getNearbyLocation")
public void getNearbyLocation(
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<UserLocationResponse> cb
);
 
Example #2
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getCollectionRestaurants")
public void getCollectionRestaurants(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.COLLECTION_ID) String collection_id,
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<RestaurantResponse> cb
);
 
Example #3
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getAllRestaurants")
public void getAllRestaurants(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<RestaurantResponse> cb
);
 
Example #4
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/followUser")
public void followUser(
        @Field(Constant.ID) String _id,
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.STATUS) String status,
        Callback<NormalResponse> cb
);
 
Example #5
Source File: ServerAPI.java    From FlowGeek with GNU General Public License v2.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/action/api/blogcomment_pub")
Observable<RespResult> replyBlogComment(
        @Field("blog") long aid,
        @Field("uid") long uid,
        @Field("content") String content,
        @Field("reply_id") int rid,
        @Field("objuid") int auid
);
 
Example #6
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getRecommendedRestaurants")
public void getRecommendedRestaurants(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<RestaurantResponse> cb
);
 
Example #7
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getUserSearch")
public void getUserSearch(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.NAME) String name,
        Callback<UserListResponse> cb
);
 
Example #8
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getRecentRestaurants")
public void getRecentRestaurants(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<RestaurantResponse> cb
);
 
Example #9
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getUserFollowers")
public void getUserFollowers(
        @Field(Constant.ID) String _id,
        @Field(Constant.USER_ID) String user_id,
        Callback<UserListResponse> cb
);
 
Example #10
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getUserFollowing")
public void getUserFollowing(
        @Field(Constant.ID) String _id,
        @Field(Constant.USER_ID) String user_id,
        Callback<UserListResponse> cb
);
 
Example #11
Source File: ServerAPI.java    From FlowGeek with GNU General Public License v2.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/action/api/comment_reply")
Observable<RespResult> replyNormalComment(
        @Field("catalog") int catalog,
        @Field("id") long aid,
        @Field("uid") long uid,
        @Field("content") String content,
        @Field("replyid") int rid,
        @Field("authorid") int auid
);
 
Example #12
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/addRestaurantPhotos")
public void addRestaurantPhotos(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.RESTAURANT_ID) String restaurant_id,
        @Field(Constant.RESTAURANT_BRANCH_ID) String restaurant_branch_id,
        @Field(Constant.CONTENT) String content,
        Callback<MealDetailResponse> cb
);
 
Example #13
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getMealRestaurants")
public void getMealRestaurants(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<MealDetailResponse> cb
);
 
Example #14
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/setUserHandle")
public void setUserHandle(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.HANDLE) String handle,
        Callback<NormalResponse> cb
);
 
Example #15
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/setUserLocation")
public void setUserLocation(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.LOCATION_ID) String location_id,
        Callback<NormalResponse> cb
);
 
Example #16
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getRestaurantPhotos")
public void getRestaurantPhotos(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.RESTAURANT_BRANCH_ID) String restaurant_branch_id,
        Callback<RestaurantImageResponse> cb
);
 
Example #17
Source File: ServerAPI.java    From FlowGeek with GNU General Public License v2.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/action/api/blogcomment_pub")
Observable<RespResult> publicBlogComment(
        @Field("blog") long aid,
        @Field("uid") long uid,
        @Field("content") String content
);
 
Example #18
Source File: ServerAPI.java    From FlowGeek with GNU General Public License v2.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/action/api/comment_pub")
Observable<RespResult> publicNormalComment(
        @Field("catalog") int catalog,
        @Field("id") long aid,
        @Field("uid") long uid,
        @Field("content") String content,
        @Field("isPostToMyZone") int sure
);
 
Example #19
Source File: TalkApi.java    From talk-android with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/messages/search")
Observable<SearchResponseData> searchMessages(@Field("_teamId") String teamId,
                                              @Field("q") String keyword,
                                              @Field("page") int page,
                                              @Field("limit") int limit,
                                              @Field("_creatorId") String creatorId,
                                              @Field("_roomId") String roomId,
                                              @Field("isDirectMessage") Boolean isDirectMessage,
                                              @Field("hasTag") Boolean hasTag,
                                              @Field("_tagId") String tagId,
                                              @Field("type") String type,
                                              @Field("timeRange") String timeRange);
 
Example #20
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getBookmarkedRestaurants")
public void getBookmarkedRestaurants(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<RestaurantResponse> cb
);
 
Example #21
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getBeenThereRestaurants")
public void getBeenThereRestaurants(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<RestaurantResponse> cb
);
 
Example #22
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/saveCollection")
public void saveCollection(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.COLLECTION_ID) String collection_id,
        @Field(Constant.STATUS) String status,
        Callback<SaveResponse> cb
);
 
Example #23
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/bookmarkRestaurant")
public void bookmarkRestaurant(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.RESTAURANT_BRANCH_ID) String restaurant_id,
        @Field(Constant.STATUS) String status,
        Callback<SaveResponse> cb
);
 
Example #24
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@FormUrlEncoded
@PUT("/shots/{id}/comments/{cid}")
Observable<Comment> editShotComments(@Path("id") long id, @Path("cid") long cid, @Field("body") String body);
 
Example #25
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@FormUrlEncoded
@PUT("/buckets/{id}")
Observable<Bucket> editBucket(@Path("id") long id, @Field("name") String name, @Field("description") String description);
 
Example #26
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("/rooms")
Observable<Room> createRoom(
        @Field("_teamId") String teamId,
        @Field("topic") String topic,
        @Field("isPrivate") boolean isPrivate);
 
Example #27
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("/favorites")
Observable<Object> favoriteMessage(@Field("_messageId") String messageId);
 
Example #28
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@PUT("/preferences")
Observable<Preference> updatePushOnWorkTime(
        @Field("pushOnWorkTime") boolean isOn,
        @Field("timezone") String timezone);
 
Example #29
Source File: ChangeUserRepoSubscription.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST(WebserviceOptions.WebServicesLink+"3/changeUserRepoSubscription")
@FormUrlEncoded
GenericResponseV2 run(@FieldMap HashMap<String, String> args);
 
Example #30
Source File: DownloadExecutor.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST("/3/registerUserApkInstall")
@FormUrlEncoded
Object call(@FieldMap HashMap<String, String> map);