/**
  * Gets torrents based on id, if no id is set then returns all torrents
  *
  * @param bool|false $allFields
  * @param array $ids
  * @param array $chosenFields
  *
  * @return mixed
  */
 public function torrentGet($allFields = false, array $ids = [], array $chosenFields = [])
 {
     $payload = ["method" => "torrent-get", "arguments" => []];
     if (count($chosenFields) == 0) {
         $payload["arguments"]['fields'] = $allFields ? Transmission::allGetFields() : Transmission::$basicGetFields;
     } else {
         $payload["arguments"]['fields'] = $chosenFields;
     }
     if (count($ids) != 0) {
         $payload["arguments"]['ids'] = $ids;
     }
     return $this->client->request($payload);
 }