コード例 #1
0
 internal async Task <ResultData> GetDataAsync(string cgiPath, string api, SynologyRequestParameters parameters) => await Connection.GetDataFromApiAsync(cgiPath, api, parameters.Version, parameters.Method, parameters.Additional);
コード例 #2
0
 protected async Task <ResultData> GetDataAsync(SynologyRequestParameters parameters) => await Api.GetDataAsync(CgiPath, ApiName, parameters);
コード例 #3
0
 internal ResultData GetData(string cgiPath, string api, SynologyRequestParameters parameters) => Connection.GetDataFromApi(cgiPath, api, parameters.Version, parameters.Method, parameters.Additional);
コード例 #4
0
 protected ResultData GetData(SynologyRequestParameters parameters) => Api.GetData(CgiPath, ApiName, parameters);
コード例 #5
0
ファイル: SynologyApi.cs プロジェクト: matteobruni/Synology
 public ResultData <T> GetData <T>(string cgiPath, string api, SynologyRequestParameters parameters) => Connection.GetDataFromApi <T>(cgiPath, api, parameters.Version, parameters.Method, parameters.Additional);
コード例 #6
0
 internal static async Task <ResultData> GetDataAsync(this ISynologyApi api, string cgiPath, string apiName, SynologyRequestParameters parameters) => await api.Connection.GetDataFromApiAsync(cgiPath, apiName, parameters.Version, parameters.Method, parameters.Additional);
コード例 #7
0
 internal static ResultData GetData(this ISynologyApi api, string cgiPath, string apiName, SynologyRequestParameters parameters) => api.Connection.GetDataFromApi(cgiPath, apiName, parameters.Version, parameters.Method, parameters.Additional);
コード例 #8
0
 internal static async Task <ResultData> GetDataAsync(this ISynologyRequest request, SynologyRequestParameters parameters) => await request.Api.GetDataAsync(await request.CgiPathAsync(), request.ApiName, parameters);