Retrofit api Response

interface RetrofitApi { @Multipart @POST(WebApiKeys.USER_SIGN_UP) suspend fun userSignUp( @Part("name") name: RequestBody, @Part("email") email: RequestBody, @Part("phone_no") phone_no : RequestBody, @Part("state") state: RequestBody, @Part("city") city: RequestBody, @Part("street_no") street_no: RequestBody, @Part("pincode") pincode: RequestBody, @Part("date_of_birth") date_of_birth: RequestBody, @Part("gender") gender: RequestBody, @Part("password") password: RequestBody, @Part("latitude") latitude: RequestBody, @Part("longitude") longitude: RequestBody, @Part("country") country: RequestBody, @Part("device_token") deviceToken: RequestBody, @Part("device_id") deviceId: RequestBody, @Part("device_type") deviceType: RequestBody, @Part part: MultipartBody.Part? ):Response @FormUrlEncoded @POST(WebApiKeys.USER_SIGN_IN) suspend fun login( @Field("email") email: String, @Field("password") password: String, @Field("device_id") deviceId: String, @Field("device_name") deviceName: String, @Field("latitude") latitude: String, @Field("longitude") longitude: String, ):Response @DELETE(WebApiKeys.REMOVE_DEVICE+"{device_id}") suspend fun RemoveDevice( @Path("device_id") deviceId: String ):Response @FormUrlEncoded @POST(WebApiKeys.ADD_DEVICE) suspend fun AddDevice( @Field("device_id") userDeviceId: String, @Field("device_token") deviceToken: String, @Field("type") type: String ):Response @GET(WebApiKeys.USER_SIGN_EmailCheck+"{email}") suspend fun checkEmailExists( @Path("email")email:String ):Response @GET(WebApiKeys.USER_Profile) suspend fun myprofile():Response @GET(WebApiKeys.USER_SIGN_PhoneCheck+"{phone_no}") suspend fun checkPhoneExists( @Path("phone_no")email:String ):Response @GET(WebApiKeys.FORGET_PASSWORD+"{email}") suspend fun forgetPassword( @Path("email")email:String ):Response @FormUrlEncoded @PUT(WebApiKeys.VERIFY_OTP) suspend fun otpcheck( @Field("email") email: String, @Field("otp") otp: String, ):Response @FormUrlEncoded @PUT(WebApiKeys.UPDATE_PASSWORD) suspend fun updatepassword( @Field("email") email: String, @Field("password") otp: String, ):Response @FormUrlEncoded @PATCH(WebApiKeys.UPDATE_PROFILE) suspend fun updateProfile( @Field("name") name: String, @Field("company_description") company_description: String, @Field("state") state: String, @Field("city") city: String, @Field("street_no") street_no: String, @Field("pincode") pincode: String, @Field("date_of_birth") date_of_birth: String, @Field("gender") gender: String, @Field("latitude") latitude: String, @Field("longitude") longitude: String, @Field("country") country: String ):Response @Multipart @POST(WebApiKeys.UPDATE_IMAGE_PROFILE) suspend fun uploadImage( @Part part: MultipartBody.Part? ): Response @FormUrlEncoded @PATCH(WebApiKeys.RESET_PASSWORD) suspend fun resetPassword( @Field("password") password: String, ):Response @FormUrlEncoded @POST(WebApiKeys.CHECK_PASSWORD) suspend fun checkPassword( @Field("old_password") old_password: String, ):Response @GET(WebApiKeys.TERM_AND_CONDITION_CATEGORIES) suspend fun getTermAndCondition():Response @GET(WebApiKeys.TERM_AND_CONDITION+"{terms_category_id}") suspend fun getTerm( @Path("terms_category_id")terms_category_id:String ) :Response @GET(WebApiKeys.GET_CATEGORIES) suspend fun getCategories( ) :Response @GET(WebApiKeys.SUB_CATEGORIES+"{product_category_id}") suspend fun SubCateogories( @Path("product_category_id") product_category_id :String ) :Response @FormUrlEncoded @POST(WebApiKeys.PRODUCT_MODEL) suspend fun productModel( @Field("product_category_id")product_category_id:String, @Field("product_sub_category_id")product_sub_category_id:String ):Response @FormUrlEncoded @POST(WebApiKeys.PRODUCT_BRAND_NAME) suspend fun productBrandName( @Field("product_category_id")product_category_id:String, @Field("product_sub_category_id")product_sub_category_id:String ):Response @POST(WebApiKeys.USER_ADD_PRODUCT) suspend fun userAddProduct( @Body body: RequestBody ): Response @FormUrlEncoded @POST(WebApiKeys.PRODUCT_FEATURES) suspend fun productfeature( @Field("product_category_id")product_category_id:String, @Field("product_sub_category_id")product_sub_category_id:String ):Response @Multipart @POST(WebApiKeys.USER_UPLOAD_MEDIA) suspend fun uploadMedia( @Part file: MultipartBody.Part, @Part("path") albumId: RequestBody?, ): Response @Multipart @POST(WebApiKeys.USER_UPLOAD_MEDIA) suspend fun uploadImages( @Part file: MultipartBody.Part, @Part("path") id: RequestBody?, ): Response @FormUrlEncoded @POST(WebApiKeys.GET_MY_STORE) suspend fun getProductListing( @Field("limit")limit:String, @Field("offset")offset:String ):Response @FormUrlEncoded @POST(WebApiKeys.NEW_VIEW_ALL) suspend fun getNewVIewAllListing( @Field("category_id")categoryId:String, @Field("limit")limit:String, @Field("offset")offset:String ):Response @GET(WebApiKeys.GET_DETAILS_PRODUCT+"{product_id}") suspend fun getProductDetails( @Path("product_id") product_id :String ) :Response @PATCH(WebApiKeys.USER_EDIT_PRODUCT+"{product_id}") suspend fun getEditProducts( @Path("product_id") product_id :String, @Body body: RequestBody ) :Response @DELETE(WebApiKeys.DELETE_ITEMS+"{model}/{id}") suspend fun onDeleteItems( @Path("model") model:String, @Path("id") id:String ):Response @GET(WebApiKeys.GET_PRODUCTS_SLOTS+"{product_id}/{day}") suspend fun getProductSlots( @Path("product_id") product_id :String, @Path("day") day :String ) :Response /* @FormUrlEncoded @POST(WebApiKeys.GET_HOME_PAGE) suspend fun HomePage( @Field("screen_type") screenType:String, @Field("search") search:String ):Response*/ @POST(WebApiKeys.GET_HOME_PAGE) suspend fun HomePage( @Body body: RequestBody ):Response @GET(WebApiKeys.PRODUCT_FOR_FILTER+"{sub_category_id}") suspend fun PRODUCTFORFILTER( @Path("sub_category_id") sub_category_id: String ):Response @GET(WebApiKeys.GET_NOTIFICATIONS) suspend fun getNotification():Response @GET(WebApiKeys.GET_DIRECTORY_PROMOTION+"{search}") suspend fun getDirectoryPromotion( @Path("search") search:String ):Response @FormUrlEncoded @POST(WebApiKeys.ADD_PROMOTION) suspend fun addPromotion( @Field("type") type:String, @Field("directory_id") directoryId:String, @Field("promotion_title") title:String, @Field("image") image:String ):Response @GET(WebApiKeys.EDIT_PROMOTION+"{promotion_id}") suspend fun getEditPromotion( @Path("promotion_id") promotionId:String ):Response @DELETE(WebApiKeys.DELETE_PROMOTION+"{promotion_id}") suspend fun removePromotion( @Path("promotion_id") promotionId: String ):Response @GET(WebApiKeys.GET_PROMOTION_BENEFITS) suspend fun getPromotionBenefits( @Query("type") type: String ):Response @FormUrlEncoded @POST(WebApiKeys.BOOK_PRODUCT) suspend fun BookProduct( @Field("product_id") product_id:String, @Field("product_availability_slot_id") product_availability_slot_id:String, @Field("start_time") start_time:String, @Field("end_time") end_time:String, @Field("booking_amount") booking_amount:String, @Field("variation_option_id") variation_option_id:String ):Response @GET(WebApiKeys.MY_BOOKINGS) suspend fun getMyBookings( ):Response }

Comments