COINNP.Entities
1.0.0
dotnet add package COINNP.Entities --version 1.0.0
NuGet\Install-Package COINNP.Entities -Version 1.0.0
<PackageReference Include="COINNP.Entities" Version="1.0.0" />
paket add COINNP.Entities --version 1.0.0
#r "nuget: COINNP.Entities, 1.0.0"
// Install COINNP.Entities as a Cake Addin #addin nuget:?package=COINNP.Entities&version=1.0.0 // Install COINNP.Entities as a Cake Tool #tool nuget:?package=COINNP.Entities&version=1.0.0
COIN Number Portability Entities
This library, available on NuGet, provides the COIN Number Porting (NP) messages as records. These messages are a close representation of the messages defined by Vereniging-COIN.Sdk.NP. This library provides functionality to make life easier in an 'idiomatic C#' way, whereas COIN's library may have a few design choices that do not always align with best practices or latest standards. This library aims to solve that, without breaking COIN's API or asking COIN to change / break their API and/or NP library.
Among others, this library:
- Uses records (immutable) for models (i.e. NP messages and the related objects)
- Uses correct types (like TimeSpan for Ttl, DateTimeOffset for datetime values,
bool
s for boolean values,decimal
s for monetary values, actual enums for enum values like these etc.) - Hides
Content
,Seq
andRepeats
etc. and makes enumerable items on an object "first-class citizens" implemented asIEnumerable
s, for example:
Which simplifies use.public record RangeActivation( string DossierId, string CurrentNetworkOperator, string OptaNr, DateTimeOffset PlannedDateTime, IEnumerable<RangeActivationItem> Items ) : Message(209, DossierId) { } public record RangeActivationItem( NumberSerie NumberSerie, string? PoP );
- Is nullable aware
- Provides NP messages that are actually serializable to/from JSON without additional work; It-just-works� because they're plain POCO's (with the exception of
Message
which contains type discriminators because of it's polymorphic nature).
This library is used by COINNP.Client.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Text.Json (>= 8.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on COINNP.Entities:
Package | Downloads |
---|---|
COINNP.Client
Provides a 'wrapper' for vereniging COIN's Number Portability Library that hides a few 'oddities' of working with the NP messages and message consumer / listener. This library aims to provide a more 'idiomatic C#' API which uses modern C# concepts like immutable records, nullable aware and proper types like DateTimeOffset or bool where COIN's implementation mostly only provides strings. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,604 | 2/21/2024 |