This commit is contained in:
ADITYA
2023-07-20 22:02:26 +05:30
parent 868f0512f2
commit 97d0569969
57 changed files with 2474 additions and 919 deletions

View File

@@ -2,12 +2,8 @@ package com.ssb.simplitend.apputils;
import com.ssb.simplitend.BuildConfig;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
@@ -17,16 +13,11 @@ public abstract class RetrofitHelper {
// urls
public static final String BASE_URL = "https://simplitend.betadelivery.com/";
public static final String REGISTER_PATIENT = "api/auth/patient-register";
public static final String GET_CONTACT_LIST = "api/patients-contact-list";
public static final String CREATE_CONTACT = "api/contact-create";
public static final String UPDATE_CONTACT = "api/patient-contact-update/";
// util functions
private static Retrofit retrofit;
public static synchronized Retrofit getRetrofit(){
@@ -47,8 +38,8 @@ public abstract class RetrofitHelper {
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
builder.addInterceptor(interceptor);
}
retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())