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