mirror of
https://github.com/vernu/textbee.git
synced 2026-04-18 13:58:38 -04:00
method rename
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user