method rename

This commit is contained in:
isra el
2022-03-27 17:35:19 +03:00
parent a4d926801a
commit ce9eea75e2
2 changed files with 3 additions and 3 deletions

View File

@@ -10,5 +10,5 @@ import retrofit2.http.Path;
public interface GatewayApiService {
@PATCH("gateway/devices/{deviceId}")
Call<UpdateDeviceResponseDTO> updateFCMToken(@Path("deviceId") String deviceId, @Body() UpdateDeviceInputDTO body);
Call<UpdateDeviceResponseDTO> updateDevice(@Path("deviceId") String deviceId, @Body() UpdateDeviceInputDTO body);
}

View File

@@ -91,7 +91,7 @@ public class MainActivity extends AppCompatActivity {
UpdateDeviceInputDTO updateDeviceInput = new UpdateDeviceInputDTO();
updateDeviceInput.setEnabled(isCheked);
Call<UpdateDeviceResponseDTO> apiCall = gatewayApiService.updateFCMToken(key, updateDeviceInput);
Call<UpdateDeviceResponseDTO> apiCall = gatewayApiService.updateDevice(key, updateDeviceInput);
apiCall.enqueue(new Callback<UpdateDeviceResponseDTO>() {
@Override
public void onResponse(Call<UpdateDeviceResponseDTO> call, Response<UpdateDeviceResponseDTO> response) {
@@ -149,7 +149,7 @@ public class MainActivity extends AppCompatActivity {
updateDeviceInput.setOs(Build.VERSION.BASE_OS);
Call<UpdateDeviceResponseDTO> apiCall = gatewayApiService.updateFCMToken(newKey, updateDeviceInput);
Call<UpdateDeviceResponseDTO> apiCall = gatewayApiService.updateDevice(newKey, updateDeviceInput);
apiCall.enqueue(new Callback<UpdateDeviceResponseDTO>() {
@Override
public void onResponse(Call<UpdateDeviceResponseDTO> call, Response<UpdateDeviceResponseDTO> response) {