code: public ApiResponse<TaskByDidListEnvelope> getAllByDidWithHttpInfo(String did, Integer count, Integer offset, String status, String order, String sort) throws ApiException {
          com.squareup.okhttp.Call call = getAllByDidValidateBeforeCall(did, count, offset, status, order, sort, null, null);
          Type localVarReturnType = new TypeToken<TaskByDidListEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Returns the list of tasks for a particular device id with optional status filter.
  Returns the list of tasks for a particular device id with optional status filter.
  @param did Device ID. (required)
  @param count Max results count. (optional)
  @param offset Result starting offset. (optional)
  @param status Status filter. Comma-separated statuses. (optional)
  @param order Sort results by a field. Valid fields: createdOn. (optional)
  @param sort Sort order. Valid values: asc or desc. (optional)
  @return ApiResponse&lt;TaskByDidListEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body