Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrandvd committed Aug 13, 2023
2 parents a1e60a7 + d0e00a6 commit 275aca9
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions README.md
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
```

0 comments on commit 275aca9

Please sign in to comment.