This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Contributing
Albie edited this page Aug 5, 2020
·
2 revisions
We want to make Dragon6 accessible to all. This means accommodating for all platforms and regions where possible.
The structure is as follows:
File | Folder | Summary |
---|---|---|
AccountInfo.cs | /Data | Base Model, should have custom JsonProperty attributes |
AccountInfoDeserializer.cs | /Data/Deserializers | [Static] Extension method for converting JObject to the AccountInfo class |
AccountInfoRequest.cs | /Data/Requests | Class for creating the request. Must inherit UbiApiRequest , PlatformSpecificRequest or BasicStatsRequest
|
AccountInfoExtensions.cs | /Data/Extensions | [Static] Extension method for creating the request, performing it with this Dragon6Client client and deserializing it |
Accounts.cs | /Data/Strings | [Static] public static readonly string s containing the official server JSON keys. Used by the Deserializer |
When testing, make sure the classes have code coverage in the DragonFruit.Six.API.Tests
project. They should test all platforms. The extension method should be tested against one and multiple accounts during the tests.
The code should follow the ReSharper config file at the base directory. When making a PR, the GitHub action will tell you what parts fail the check.