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 @FormUrlEncoded @POST("fcm") fun sendFcmToken( @Field("device") device: String?, @Field("token") token: String? ): Call @FormUrlEncoded @POST("signup") fun signup( @Field("email") email: String?, @Field("password") password: String?, @Field("name") name: String? ): Call @POST("logout") fun logout(): Call @POST("me/delete") fun deleteAccount(): Call @FormUrlEncoded @POST("favourites") fun setFavUnfav( @Field("server_id") serverId: String? ): Call @GET("http://ip-api.com/json") fun getIp(): Call @GET("servers") fun serverDataApi(): Call @GET("notifications") fun getNotifications(): Call @FormUrlEncoded @POST("validate") fun validatePassword( @Field("email") email: String?, @Field("password") password: String?, @Field("platform") platform: String?, @Field("version") version: String? ): Call? @GET("products") fun getProducts(): Call @FormUrlEncoded @POST("create-subscription") fun createSubscription( @Field("transaction_id") transaction_id: String?, @Field("receipt_data") receipt_data: String?, @Field("productId") productId: String? ): Call @FormUrlEncoded @POST("forgot-password") fun forgotPassword( @Field("email") email: String? ): Call @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 @FormUrlEncoded @POST("email-us") fun emailUs( @Field("message") message: String?, ): Call }