Titanic.Helpers
1.3.3
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 2.0
This package targets .NET Framework 2.0. The package is compatible with this framework or higher.
dotnet add package Titanic.Helpers --version 1.3.3
NuGet\Install-Package Titanic.Helpers -Version 1.3.3
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="Titanic.Helpers" Version="1.3.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Titanic.Helpers" Version="1.3.3" />
<PackageReference Include="Titanic.Helpers" />
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 Titanic.Helpers --version 1.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Titanic.Helpers, 1.3.3"
#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.
#:package Titanic.Helpers@1.3.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Titanic.Helpers&version=1.3.3
#tool nuget:?package=Titanic.Helpers&version=1.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
titanic-csharp
C# libraries for Titanic!
Packages
| Package | Description |
|---|---|
Titanic.API |
API wrapper for Titanic! |
Titanic.CDN |
CDN API wrapper for Titanic! |
Titanic.Updater |
Updater library for modded osu! clients |
Installation
Add the NuGet packages or reference the projects directly:
dotnet add package Titanic.API
dotnet add package Titanic.CDN
dotnet add package Titanic.Updater
Titanic.API Usage
using Titanic.API;
using Titanic.API.Requests;
var api = new TitanicAPI();
// Blocking request
var user = new GetUserRequest(1).BlockingPerform(api);
// Async request with callbacks
new GetUserRequest(1).Perform(api,
onSuccess: user => Console.WriteLine(user.Name),
onError: ex => Console.WriteLine(ex.Message)
);
// Further documentation can be found here:
// https://api.titanic.sh/docs
Titanic.Updater Usage
using Titanic.Updater;
using Titanic.Updater.Models;
using Titanic.Updater.Versioning;
UpdateManagerSettings settings = new()
{
Exit = () => Console.WriteLine("Exit called!"),
ReplaceCurrentExecutable = false,
IncludeClientIdentifierInOutputPath = true,
};
var clientInfo = new ModdedClientInformation
{
ClientIdentifier = "my-client",
VersionKind = OsuVersionKind.BuildNumber,
InstalledVersion = "b20130815",
InstalledStream = "stable"
};
UpdateManager manager = new(settings);
ModdedReleaseEntry? update = manager.CheckUpdateForClient(client);
if (update != null)
{
if (!update.IsExtractable)
{
Console.WriteLine($"Update found: {update.Version}, but not extractable");
return;
}
Console.WriteLine($"Update found: {update.Version}");
DownloadedUpdate downloadedUpdate = manager.DownloadClientUpdate(client, update);
Console.WriteLine($"Update downloaded to {downloadedUpdate.Path}");
manager.InstallClientUpdate(downloadedUpdate);
}
Titanic.CDN Usage
using Titanic.CDN;
using Titanic.CDN.Requests;
var cdn = new TitanicCDN();
var health = new GetHealthRequest().BlockingPerform(cdn);
var data = new DownloadObjectRequest("public/client/release-1.0.0.zip").BlockingPerform(cdn);
// The following requests require an access key
cdn.AccessKey = "your-access-key";
var session = new GetSessionRequest().BlockingPerform(cdn);
var files = new ListFilesRequest("public/client/", limit: 100).BlockingPerform(cdn);
var uploadRequest = new UploadFileRequest("public/client/release-1.0.0.zip", data, contentType: "application/octet-stream");
var upload = uploadRequest.BlockingPerform(cdn);
new DeleteCDNAdminFileRequest("public/client/release-1.0.0.zip").BlockingPerform(cdn);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net20 is compatible. net35 is compatible. net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Titanic.Helpers:
| Package | Downloads |
|---|---|
|
Titanic.API
API wrapper for osu.titanic.sh |
|
|
Titanic.Updater
Updater library for old osu! clients that use the Titanic custom servers |
|
|
Titanic.CDN
API wrapper for cdn.titanic.sh |
GitHub repositories
This package is not used by any popular GitHub repositories.