12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- package com.vpn.fastestvpnservice.retrofit
- import com.vpn.fastestvpnservice.beans.DataResponse
- import com.vpn.fastestvpnservice.beans.UserResponse
- import retrofit2.Call
- import retrofit2.http.Field
- import retrofit2.http.FormUrlEncoded
- import retrofit2.http.GET
- import retrofit2.http.POST
- interface Api {
- @FormUrlEncoded
- @POST("authenticate")
- fun login(
- @Field("email") email: String?, @Field("password") password: String?,
- @Field("platform") platform: String?, @Field("version") version: String?,
- @Field("app_version") app_version: String?
- ): Call<Any?>
- @FormUrlEncoded
- @POST("fcm")
- fun sendFcmToken(
- @Field("device") device: String?, @Field("token") token: String?
- ): Call<Any>
- @FormUrlEncoded
- @POST("signup")
- fun signup(
- @Field("email") email: String?, @Field("password") password: String?, @Field("name") name: String?
- ): Call<Any?>
- @POST("logout")
- fun logout(): Call<Any>
- @POST("me/delete")
- fun deleteAccount(): Call<Any>
- @FormUrlEncoded
- @POST("favourites")
- fun setFavUnfav(
- @Field("server_id") serverId: String?
- ): Call<Any>
- @GET("http://ip-api.com/json")
- fun getIp(): Call<Any>
- @GET("servers")
- fun serverDataApi(): Call<Any>
- @GET("notifications")
- fun getNotifications(): Call<Any>
- @FormUrlEncoded
- @POST("validate")
- fun validatePassword(
- @Field("email") email: String?, @Field("password") password: String?,
- @Field("platform") platform: String?, @Field("version") version: String?
- ): Call<Any>?
- @GET("products")
- fun getProducts(): Call<Any>
- @FormUrlEncoded
- @POST("create-subscription")
- fun createSubscription(
- @Field("transaction_id") transaction_id: String?, @Field("receipt_data") receipt_data: String?,
- @Field("productId") productId: String?
- ): Call<Any>
- @FormUrlEncoded
- @POST("forgot-password")
- fun forgotPassword(
- @Field("email") email: String?
- ): Call<Any>
- @FormUrlEncoded
- @POST("update-password")
- fun changePassword(
- @Field("current_password") current_password: String?,
- @Field("new_password") new_password: String?,
- @Field("confirm_password") confirm_password: String?
- ): Call<Any>
- @FormUrlEncoded
- @POST("email-us")
- fun emailUs(
- @Field("message") message: String?,
- ): Call<Any>
- }
|