code: public ApiResponse<PresenceEnvelope> getDevicePresenceWithHttpInfo(String deviceId) throws ApiException {
          com.squareup.okhttp.Call call = getDevicePresenceValidateBeforeCall(deviceId, null, null);
          Type localVarReturnType = new TypeToken<PresenceEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Get device presence information
  Return the presence status of the given device along with the time it was last seen
  @param deviceId Device ID. (required)
  @return ApiResponse&lt;PresenceEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body