Skip to content

Commit

Permalink
made methods public
Browse files Browse the repository at this point in the history
  • Loading branch information
vyaskhyati committed Apr 27, 2021
1 parent 95a3204 commit afee292
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,11 @@ public void onResponse(Call<SceneMarkResponseCMF> call, retrofit2.Response<Scene
Log.i("response body", "---->>>> " + response.body());
response.body().setDeviceName(deviceName);
response.body().setDeviceTimeZone(deviceTimeZone);
if(!alertArrayList.contains(response.body())){
alertArrayList.add(response.body());
alertLiveData.setValue(alertArrayList);
}

alertArrayList.add(response.body());
alertLiveData.setValue(alertArrayList);

}else{
Utils.removeCustomProgressDialog();
Expand Down Expand Up @@ -858,7 +860,7 @@ public void onFailure(Call<ResponseBody> call, Throwable t) {
}

/** remove token from server to stop notification of particular node **/
private void removeTokenFromServer(AppCompatActivity activity, String nodeID, String devideToken, String applicationId) {
public void removeTokenFromServer(AppCompatActivity activity, String nodeID, String devideToken, String applicationId) {
Utils.showCustomProgressDialog(activity, "", false);
pHelper = PreferenceHelper.getInstance(activity);

Expand Down Expand Up @@ -901,7 +903,7 @@ public void onFailure(Call<ResponseBody> call, Throwable t) {
});
}

private void addFaceDatabaseApi(AppCompatActivity activity, String name, String currentPhotoPath) {
public void addFaceDatabaseApi(AppCompatActivity activity, String name, String currentPhotoPath) {

Utils.showCustomProgressDialog(activity, "", false);

Expand Down Expand Up @@ -945,7 +947,7 @@ public void onFailure(Call<AddFaceResponse> call, Throwable t) {

}

private void changeFaceDatabaseApi(AppCompatActivity activity, String personId, boolean isChecked, Switch swFace) {
public void changeFaceDatabaseApi(AppCompatActivity activity, String personId, boolean isChecked, Switch swFace) {

Utils.showCustomProgressDialog(activity, "", false);

Expand Down Expand Up @@ -994,7 +996,7 @@ public void onFailure(Call<AddFaceResponse> call, Throwable t) {
}
}

private void getFaceDatabaseApi(AppCompatActivity activity) {
public void getFaceDatabaseApi(AppCompatActivity activity) {

Utils.showCustomProgressDialog(activity, "", false);

Expand Down

0 comments on commit afee292

Please sign in to comment.