示例#1
0
 public Task <Miner> GetCurrentMinerAsync()
 => GetAsync <Miner>(ClientRoutes.GetCurrentMiner(ApiUrl));
示例#2
0
 public Task <List <Miner> > ListOwnedMinersAsync()
 => GetAsync <List <Miner> >(ClientRoutes.ListOwnedMiners(ApiUrl));
示例#3
0
 public Task <Wallet> GetPoolWalletAsync()
 => GetAsync <Wallet>(ClientRoutes.GetPoolWalletAsync(ApiUrl));
示例#4
0
 public Task <User> GetCurrentUserAync()
 => GetAsync <User>(ClientRoutes.GetCurrentUser(ApiUrl));
示例#5
0
 public Task StartPlotGenerationAsync(PlottingConfiguration configuration)
 => PostAsync(ClientRoutes.StartPlotGeneration(ApiUrl), configuration);
示例#6
0
 public Task <string[]> GetPoolLogAsync(ushort count)
 => GetAsync <string[]>(ClientRoutes.GetPoolLog(ApiUrl, count));
示例#7
0
 public Task <bool> DeletePlotByFileNameAsync(string fileName)
 => PostAsync <bool>(ClientRoutes.DeletePlotByFileName(ApiUrl), new Dictionary <string, string>()
 {
     ["fileName"] = fileName,
 });
示例#8
0
 public Task <bool> DeletePlotByPublicKeyAsync(string publicKey)
 => PostAsync <bool>(ClientRoutes.DeletePlotByPublicKey(ApiUrl), new Dictionary <string, string>()
 {
     ["publicKey"] = publicKey.ToString(),
 });
示例#9
0
 public Task ReloadPlotsAsync()
 => PostAsync(ClientRoutes.ReloadPlots(ApiUrl));
示例#10
0
 public Task <PlotInfo[]> GetPlotsAsync()
 => GetAsync <PlotInfo[]>(ClientRoutes.ListPlots(ApiUrl));
示例#11
0
 public Task <ClientStatus> GetStatusAsync()
 => GetAsync <ClientStatus>(ClientRoutes.Status(ApiUrl));