code: public TaskByDidListEnvelope getAllByDid(String did, Integer count, Integer offset, String status, String order, String sort) throws ApiException {
          ApiResponse<TaskByDidListEnvelope> resp = getAllByDidWithHttpInfo(did, count, offset, status, order, sort);
          return resp.getData();
      }
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 TaskByDidListEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body