OpenOnlineConfig 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package OpenOnlineConfig --version 1.0.0
NuGet\Install-Package OpenOnlineConfig -Version 1.0.0
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="OpenOnlineConfig" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OpenOnlineConfig --version 1.0.0
#r "nuget: OpenOnlineConfig, 1.0.0"
#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.
// Install OpenOnlineConfig as a Cake Addin
#addin nuget:?package=OpenOnlineConfig&version=1.0.0

// Install OpenOnlineConfig as a Cake Tool
#tool nuget:?package=OpenOnlineConfig&version=1.0.0

OpenOnlineConfig.NET

Nuget Build & Test Publish NuGet Package

OpenOnlineConfig.NET is a .NET class library for Open Online Config (OOC) support.

Supported Open Online Config Versions

Usage

1. API Token

OOCv1ApiToken is an immutable record type. It can be used to serialize and deserialize API tokens.

// Serialize an API token.
var token = new OOCv1ApiToken(1, "https://example.com", "8c1da4d8-8684-4a2c-9abb-57b9d5fa7e52", "a117460e-41df-4dbd-b2df-4bd0c16efd2f", null);
var json = JsonSerializer.Serialize(token, JsonHelper.camelCaseMinifiedJsonSerializerOptions);
// Deserialize an API token.
var json = "{\"version\":1,\"baseUrl\":\"https://example.com\",\"secret\":\"8c1da4d8-8684-4a2c-9abb-57b9d5fa7e52\",\"userId\":\"a117460e-41df-4dbd-b2df-4bd0c16efd2f\"}";
var token = JsonSerializer.Deserialize<OOCv1ApiToken>(json, JsonHelper.camelCaseJsonDeserializerOptions);

2. Config Base

OOCv1ConfigBase is the minimal OOCv1 config type. To use this type, inherit from it and add protocol-specific properties.

3. API Client

OOCv1ApiClient is the general-purpose OOCv1 API client. Use this if you want to handle the response JSON yourself.

OOCv1ApiClient<T> is the generic OOCv1 API client. Use this if you have specific protocols in mind. T must be a subclass of OOCv1ConfigBase.

License

The project is licensed under the MIT license.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OpenOnlineConfig:

Package Downloads
Shadowsocks.OnlineConfig

Shadowsocks protocol support for Open Online Config 1 and SIP008.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 1,555 2/22/2022
1.1.0 1,792 7/21/2021
1.0.0 568 7/5/2021