Skip to content

Commit

Permalink
Changed endpoint name and v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
iyaselerehoboth committed Mar 8, 2021
1 parent 9106006 commit 3666c10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
versionName "1.0.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


import java.util.List;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
Expand All @@ -11,11 +12,11 @@ public interface RetrofitInterface {

/**
* This is the interface class for sync operations
* */
*/

@FormUrlEncoded
@POST("uploadLogs")
Call<List<UploadLogsResponse>> uploadLogs(@Field("upload_list") String upload_list);
@POST("uploadGeneralLogs")
Call<List<UploadLogsResponse>> uploadGeneralLogs(@Field("upload_list") String upload_list);

@FormUrlEncoded
@POST("uploadAuditLogs")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void uploadLogs() {
Call<List<UploadLogsResponse>> call = NetworkClient
.getInstance(context)
.getApi()
.uploadLogs(new Gson().toJson(AppDatabase.getInstance(context).appLogsDao().getUnSyncedLogs()));
.uploadGeneralLogs(new Gson().toJson(AppDatabase.getInstance(context).appLogsDao().getUnSyncedLogs()));

call.enqueue(new Callback<List<UploadLogsResponse>>() {
@Override
Expand Down

0 comments on commit 3666c10

Please sign in to comment.