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