Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Commit

Permalink
Fixed clan war info stage end time when null
Browse files Browse the repository at this point in the history
Clan war info - stage end time thrown exception when it should be null. This is now fixed.

Version 0.7.2 -> 0.7.3

Co-Authored-By: richagain <richagain@users.noreply.github.com>
  • Loading branch information
SoptikHa2 and richagain committed Aug 12, 2018
1 parent 23fc77a commit 2064410
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CR API Standart Wrapper/Clan/ClanWarInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ public class ClanWarInfo
/// <summary>
/// Unix timestamp, when current clan war stage ends
/// </summary>
public int stageEndTime
public int? stageEndTime
{
get
{
return _warEndTime ?? _collectionEndTime.Value;
return _warEndTime ?? _collectionEndTime.GetValueOrDefault();
}
set { }
}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ If it is there, but it isn't in wrapper, [create wrapper issue](https://github.c

To start, you'll need AUTH key to access API. Go to [ROYALE API website](https://docs.royaleapi.com/#/authentication?id=key-management) and get your own key.

Now just download nuget package [Stastny.CRAPI](https://www.nuget.org/packages/Stastny.CRAPI/) and everything is ready :)
Now just download nuget package [Stastny.CRAPI](https://www.nuget.org/packages/Stastny.CRAPI/) and everything will be ready :)
```
Install-Package Stastny.CRAPI -Version 0.7.2
Install-Package Stastny.CRAPI -Version 0.7.3
dotnet add package Stastny.CRAPI --version 0.7.2
dotnet add package Stastny.CRAPI --version 0.7.3
```

## How to start
Expand Down

0 comments on commit 2064410

Please sign in to comment.