Skip to content

Commit

Permalink
Readme updated to include GetFlag usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kolya5544 committed Jun 13, 2021
1 parent e650e06 commit 435c587
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,20 @@ List<CensusNode> censusData = api.GetCensus("IKTeam", Census.BlackMarket, 161245
CensusNode node = censusData[10];
Console.WriteLine($"On {DateTimeOffset.FromUnixTimeSeconds(node.timestamp):dd/MM/yyyy HH:mm:ss} the value of Black Market in IKTeam was {node.value}");
```
#### Get flag of a nation or region
```cs
using dotNS;
using dotNS.Classes;
<...>
// Create an API wrapper
DotNS api = new DotNS();
// Get basic information of nation/region
// -> PublicRegionInfo info = api.GetRegionInfo("region");
PublicNationInfo info = api.GetNationInfo("nation");
// Get flag.
System.Drawing.Bitmap bmp = info.GetFlag();
bmp.Save("flag.png");
```
### Low level API example
#### Get advanced public shard information
```cs
Expand Down

0 comments on commit 435c587

Please sign in to comment.