retrofit.http.Field Java Examples

The following examples show how to use retrofit.http.Field. 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: Service.java    From Fishing with GNU General Public License v3.0 6 votes vote down vote up
@FormUrlEncoded
@POST("/place/add")
Observable<Object> publishPlace(
        @Field("id") int id,
        @Field("name") String name,
        @Field("preview") String preview,
        @Field("briefAddr") String briefAddr,
        @Field("address") String address,
        @Field("cost") int cost,
        @Field("costType") int costType,
        @Field("fishType") String fishType,
        @Field("poolType") int poolType,
        @Field("serviceType") String serviceType,
        @Field("tel") String tel,
        @Field("content") String content,
        @Field("picture") String picture,
        @Field("lat") double lat,
        @Field("lng") double lng,
        @Field("area") String area,
        @Field("deep") String deep,
        @Field("hole") int hole
        );
 
Example #2
Source File: ServerAPI.java    From FlowGeek with GNU General Public License v2.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/action/api/blogcomment_delete")
Observable<RespResult> deleteBlogComment(
        @Field("uid") long uid,
        @Field("blogid") long bid,
        @Field("replyid") long rid,
        @Field("authorid") long auid,
        @Field("owneruid") long oid
);
 
Example #3
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 #4
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getRestaurantDetails")
public void getRestaurantDetails(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.RESTAURANT_BRANCH_ID) String id,
        Callback<RestaurantDetailResponse> cb
);
 
Example #5
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 #6
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 #7
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 #8
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 #9
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 #10
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getSearchRestaurants")
public void getSearchRestaurants(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.DATA) String data,
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<RestaurantResponse> cb
);
 
Example #11
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 #12
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/setUserDetails")
public void setUserDetails(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.NAME) String name,
        @Field(Constant.PHONE_NO) String phone_no,
        @Field(Constant.DESCRIPTION) String description,
        Callback<NormalResponse> cb
);
 
Example #13
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 #14
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 #15
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 #16
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 #17
Source File: TalkApi.java    From talk-android with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/rooms")
Observable<Room> createRoom(
        @Field("_teamId") String teamId,
        @Field("topic") String topic,
        @Field("color") String color,
        @Field("purpose") String goal);
 
Example #18
Source File: TokenApi.java    From phphub-android with Apache License 2.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/oauth/access_token")
Observable<Token> getToken(@Field("grant_type") @AuthType String authType,
                           @Field("client_id") String clientId,
                           @Field("client_secret") String clientSecret,
                           @Field("username") String username,
                           @Field("login_token") String loginToken);
 
Example #19
Source File: TpsApi.java    From talk-android with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/v1/users/register")
public Observable<RegisterTpsResponseData> register(
        @Field("appKey") String appKey,
        @Field("userId") String userId,
        @Field("deviceToken") String deviceToken
);
 
Example #20
Source File: Service.java    From Fishing with GNU General Public License v3.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/weibo/add")
Observable<Object> addBlog(@Field("content")String content,
                            @Field("images")String images,
                            @Field("address")String address,
                            @Field("lng")double lng,
                            @Field("lat")double lat);
 
Example #21
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/addRestaurantReview")
public void addRestaurantReview(
        @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.RATING) String rating,
        @Field(Constant.DATA) String data,
        @Field(Constant.CONTENT) String content,
        Callback<MealDetailResponse> cb
);
 
Example #22
Source File: Service.java    From Fishing with GNU General Public License v3.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/user/pushSet")
Observable<Object> uploadPushSetting(
        @Field("zan")int praise,
        @Field("comment")int comment,
        @Field("care")int care,
        @Field("place")int place);
 
Example #23
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 #24
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/beenthereRestaurant")
public void beenthereRestaurant(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.RESTAURANT_BRANCH_ID) String restaurant_id,
        @Field(Constant.STATUS) String status,
        Callback<SaveResponse> cb
);
 
Example #25
Source File: ApiDefs.java    From spark-sdk-android with Apache License 2.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/v1/orgs/{orgName}/customers/reset_password")
@Deprecated
Response requestPasswordResetForCustomer(@Field("email") String email,
                                         @Path("orgName") String orgName);
 
Example #26
Source File: Service.java    From Fishing with GNU General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/user/resetPass")
Observable<Object> resetPass(@Field("tel")String tel,
                             @Field("code")String code,
                             @Field("password")String password);
 
Example #27
Source File: ServerAPI.java    From FlowGeek with GNU General Public License v2.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/action/api/tweet_delete")
Call<RespResult> deleteTweet(
        @Field("uid") long uid,
        @Field("tweetid") long tid
);
 
Example #28
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@PUT("/rooms/{id}")
Observable<Room> updateRoom(@Path("id") String roomId,
                            @Field("isPrivate") boolean isPrivate);
 
Example #29
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("/rooms/{id}/removemember")
Observable<Object> removeMemberFromRoom(@Path("id") String roomId,
                                        @Field("_userId") String memberId);
 
Example #30
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@PUT("/messages/{id}")
Observable<Message> updateMessage(@Path("id") String messageId,
                                  @Field(("body")) String body);