Companion package for Xyclone Designs IEC Api & xyclone-designs/database.iec github project
$ dotnet add package XycloneDesigns.Apis.IECA simple wrapper to the Xyclone Designs IEC API.
Include the library and then make calls to the various API end points.
Visit api.xyclonedesigns.co.za/iec/rest for a more comprehensive swagger documentation in regards to the API.
Base From XycloneDesigns.Apis.IEC.
<pre> public class Request { public int Page { get; set; } = 1; public int PageSize { get; set; } = 10; public string[] OrderBy { get; set; } = []; public int[] Pk { get; set; } = []; public bool Reverse { get; set; } = false; // Ballots... public int[]? PkElectoralEvent { get; set; } public int[]? PkMunicipality { get; set; } public int[]? PkProvince { get; set; } public int[]? PkVotingDistrict { get; set; } public int[]? PkWard { get; set; } public string[]? Type { get; set; } // Parties... public string[]? Abbr { get; set; } // VotingDistricts... public string[]? Id { get; set; } public int[]? PkMunicipality { get; set; } public int[]? PkProvince { get; set; } public int[]? PkWard { get; set; } // Wards... public string[]? Id { get; set; } public int[]? PkMunicipality { get; set; } public int[]? PkProvince { get; set; } } </pre>Base From XycloneDesigns.Apis.IEC.
<pre> public class Reponse { public int Count { get; set; } = 1; public int Page { get; set; } = 1; public int Pages { get; set; } = 1; public IEnumerable<T> Items { get; set; } = Enumerable.Empty<T>(); } </pre>