Avenga.TickleValidation
1.0.0
dotnet add package Avenga.TickleValidation --version 1.0.0
NuGet\Install-Package Avenga.TickleValidation -Version 1.0.0
<PackageReference Include="Avenga.TickleValidation" Version="1.0.0" />
<PackageVersion Include="Avenga.TickleValidation" Version="1.0.0" />
<PackageReference Include="Avenga.TickleValidation" />
paket add Avenga.TickleValidation --version 1.0.0
#r "nuget: Avenga.TickleValidation, 1.0.0"
#:package Avenga.TickleValidation@1.0.0
#addin nuget:?package=Avenga.TickleValidation&version=1.0.0
#tool nuget:?package=Avenga.TickleValidation&version=1.0.0
Mobile Ticket Specification libraries for .NET
Nuget packages that supports the essential use cases for working with tickets according to Samtrafikens MTS-standard (Mobile Ticket Specifications).
MTS is a part of BoB, the national ticket & payment standards for public transport in Sweden (Biljett Och Betalstandarden).
MTS consists of 8 specification documents - "MTS 1" through "MTS 8" (at the time of writing).
The essential documents for these Nuget packages are:s
- MTS 1: Defines the Mobile Ticket Bundle (MTB) which outlines the structure of a ticket as well as serialization and signatures.
- MTS 6: Defines the "Tickle" language for expressing ticket validity (e.g. in time and geography).
Packages
- Avenga.MtbValidation - Validate MTBs. Used by ticket validation software. Depends on Avenga.Mtb and Avenga.TickleValidation (se below).
- Avenga.Mtb - Convert between MTBs and a convenient .NET document object model. Used for both creating and inspecting MTBs.
- Avenga.TickleValidation - Compile a Tickle expression into runnable code (as a function) that can be called to validate the Tickle-expression.
- Avenga.TickleCreation - Create standardized Tickle expressions using the C# language (that get transpiled to Tickle).
Main use cases
- Create a new MTB - Use Avenga.Mtb for creating the MTB structure and all it's contents, and the Avenga.TickleCreation to produce a correctly formatted Tickle-expression. The MTB can then be serialized into a MTB binary and returned to caller.
- Validate an MTB - Use Avenga.MtbValidation to run a complete validation on an MTB (outer header, inner header and the embedded Tickle expression).
- Inspect the content of an MTB - Use Avenga.Mtb to deserialize and get access to all the contents of an MTB.
- Validate a Tickle expression - Use Avenga.TickleValidation to just run a validation on a stand alone Tickle-expression (i.e. when an MTB is not available or needed)
| 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 was computed. 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 was computed. 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. |
-
net8.0
- Superpower (>= 3.0.0)
- System.ObjectModel (>= 4.3.0)
- System.Text.Encodings.Web (>= 9.0.2)
- System.Text.Json (>= 9.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Avenga.TickleValidation:
| Package | Downloads |
|---|---|
|
Avenga.MtbValidation
Provides standards-compliant capabilities to validate Mobile Ticket Bundles (outer header, inner header and the embedded Tickle expression), as defined by Samtrafiken MTS1 and MTS6. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 878 | 3/17/2025 |