-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/tonradar/fragment-sdk-dotnet
- Loading branch information
Showing
1 changed file
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
# Fragment .NET SDK | ||
# TON Fragment .NET SDK | ||
[![NuGet version (TonRadar.Fragment)](https://img.shields.io/nuget/v/TonRadar.Fragment.svg?style=flat-square)](https://www.nuget.org/packages/TonRadar.Fragment/) | ||
[![Build and Deploy](https://github.com/tonradar/fragment-sdk-dotnet/actions/workflows/build.yml/badge.svg)](https://github.com/tonradar/fragment-sdk-dotnet/actions/workflows/build.yml) | ||
[![Build and Deploy](https://github.com/tonradar/fragment-sdk-dotnet/actions/workflows/publish-nuget.yml/badge.svg)](https://github.com/tonradar/fragment-sdk-dotnet/actions/workflows/publish-nuget.yml) | ||
|
||
A C# library to read auctions in [fragment.com](fragment.com) | ||
## Samples | ||
## How To Use | ||
```csharp | ||
// A unified client to work with fragment.com different auctions. | ||
var client = new FragmentClient(); | ||
var auctionItems = await client.Numbers.GetAuctionsAsync(FilterType.OnAuction, SortType.EndingSoon); | ||
var saleItems = await client.Numbers.GetAuctionsAsync(FilterType.ForSale); | ||
var soldItems = await client.Numbers.GetAuctionsAsync(FilterType.Sold); | ||
|
||
// Reading all auctions with EndingSoon filter. | ||
var auctionItems = await client.Numbers.GetAuctionsItemsAsync(SortType.EndingSoon); | ||
// Reading all for-sale items. | ||
var saleItems = await client.Numbers.GetSaleItemsAsync(FilterType.ForSale); | ||
|
||
// Reading all sold items. | ||
var soldItems = await client.Numbers.GetSoldItemsAuctionsAsync(FilterType.Sold); | ||
``` | ||
|
||
## How To Install | ||
Install the package using: | ||
```cmd | ||
dotnet add package TonRadar.Fragment | ||
``` |