ConstructServices 1.0.6

dotnet add package ConstructServices --version 1.0.6
                    
NuGet\Install-Package ConstructServices -Version 1.0.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ConstructServices" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ConstructServices" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="ConstructServices" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ConstructServices --version 1.0.6
                    
#r "nuget: ConstructServices, 1.0.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=ConstructServices&version=1.0.6
                    
Install ConstructServices as a Cake Addin
#tool nuget:?package=ConstructServices&version=1.0.6
                    
Install ConstructServices as a Cake Tool

Construct-Services-DotNet-Class-Library

The official Construct Services .NET library, supporting .NET Framework 4.8.1+.

Installation

Using the .NET Core command-line interface (CLI) tools:

dotnet add package ConstructServices

Using the NuGet Command Line Interface (CLI):

nuget install ConstructServices

Using the Package Manager Console:

Install-Package ConstructServices

From within Visual Studio:

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages...
  4. Click on the Browse tab and search for "Stripe.net".
  5. Click on the Stripe.net package, select the appropriate version in the right-tab and click Install.

Documentation

For a comprehensive list of examples, check out the API documentation.

Usage

Leaderboard Requests

Create a leaderboard service object, and pass in the leaderboard ID you're making requests against.

var service = new LeaderboardService("a1cd2297-a9d7-407f-b33a-881580df8228");

The leaderboard service object also has constructors for passing in an API key and a culture code for rendering various responses to a certain culture.

The leaderboard service object is a cheap object and can be created once and reused, or on demand.

Querying a Leaderboard

Once you have a leaderboard service object, all methods available in the leaderboard API will be exposed. Most requests only have one or two parameters such as BanIPAddress():

var result = service.BanIPAddress("1.2.3.4");

However other requests such as GetScores() may have more parameters:

var result = service.GetScores(
	new PaginationOptions(page),
	"US",
	ScoreRange.All,
	0,
	7,
	new RequestPerspective(Code.Helpers.Common.Functions.GetUserIPAddress())
);

Queries always return Success indicating if the response was succesfull. If not successful, ErrorMessage and ShouldRetry properties are returned. If ShouldRetry is true, likely the request is rate limited and you can retry the request in a few seconds.

Support

For any requests, bug or comments, please open an issue or submit a pull request.

Product Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.6 128 4/29/2025
1.0.5 123 4/29/2025
1.0.4 130 4/28/2025
1.0.3 130 4/28/2025
1.0.2 124 4/28/2025
1.0.1 130 4/28/2025
1.0.0 127 4/28/2025

Initial beta release.