FirebaseRestTranslator 0.1.2

.NET Core 3.0
Install-Package FirebaseRestTranslator -Version 0.1.2
dotnet add package FirebaseRestTranslator --version 0.1.2
<PackageReference Include="FirebaseRestTranslator" Version="0.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FirebaseRestTranslator --version 0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FirebaseRestTranslator, 0.1.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install FirebaseRestTranslator as a Cake Addin
#addin nuget:?package=FirebaseRestTranslator&version=0.1.2

// Install FirebaseRestTranslator as a Cake Tool
#tool nuget:?package=FirebaseRestTranslator&version=0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

FirebaseRestTranslator

CircleCI

This is a small helper class that can be used to translate C# dictionaries into the Firebase REST format so they be posted to Firebase directly.

See the tests for usage.

    [Fact]
    public void Test_FirebaseTranslator_BoolValue()
    {
        var data = new Dictionary<string, object>()
        {
            ["myKey"] = false
        };
        var expectedJson = "{\"name\":\"Test_FirebaseTranslator\",\"fields\":{\"myKey\":{\"booleanValue\":false}}}";
        var result = Translator.Translate("Test_FirebaseTranslator", data);
        var actualJson = JsonConvert.SerializeObject(result);
        Assert.Equal(expectedJson, actualJson);
    }

Changelog

0.1.2

  • Added support for uint, long types.
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.0

    • 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
0.1.2 182 4/30/2021
0.1.1 447 3/7/2020