mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-12 11:48:57 +00:00
使用ClientInterface优化
This commit is contained in:
@ -11,4 +11,11 @@ namespace IYUU\Client;
|
||||
interface AbstractClientInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询Bittorrent客户端状态
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function status();
|
||||
|
||||
}
|
||||
|
@ -758,4 +758,12 @@ class TransmissionRPC implements AbstractClientInterface
|
||||
}
|
||||
return $this->session_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function status()
|
||||
{
|
||||
return $this->sstats();
|
||||
}
|
||||
}
|
||||
|
@ -295,4 +295,12 @@ class qBittorrent implements AbstractClientInterface
|
||||
$data .= "--" . $this->delimiter . "--" . $eol;
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function status()
|
||||
{
|
||||
return $this->appVersion();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user