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