VNS.GSPro 4.0.1

dotnet add package VNS.GSPro --version 4.0.1
                    
NuGet\Install-Package VNS.GSPro -Version 4.0.1
                    
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="VNS.GSPro" Version="4.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VNS.GSPro" Version="4.0.1" />
                    
Directory.Packages.props
<PackageReference Include="VNS.GSPro" />
                    
Project file
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 VNS.GSPro --version 4.0.1
                    
#r "nuget: VNS.GSPro, 4.0.1"
                    
#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.
#addin nuget:?package=VNS.GSPro&version=4.0.1
                    
Install VNS.GSPro as a Cake Addin
#tool nuget:?package=VNS.GSPro&version=4.0.1
                    
Install VNS.GSPro as a Cake Tool

VNS GSPro

Simple integration to Gensam GSPro

Installation

Use the package manager nuget to install.

dotnet add package VNS.GSPro

Usage

// Set variables
string _url = "";
string _login = "";
string _password = "";

// Init GSPro Obj
var gs = new GSPro(_url, _login, _password);

// Ping the system
string gs.Ping();

// Check if is alive
bool gs.IsAlive;

// Get current status
string gs.Status;

// Forsikring
string _status = "TILBUD";
string _art = "";
int _frekvens = 1; // 1, 3, 6, 12

var forsikring = new VNS.GSPro.Forsikring() { Ikraft = DateTime.Now, Status = _status, Art = _art, Frekvens = _frekvens };

// Forsikring Forsikringstager Egenskaber
forsikring.Forsikringstager.Egenskaber.Add(string, string);

// Forsikringstager Adresse
forsikring.Forsikringstager.Adresse.Egenskaber.Add(string, string);

// Forsikrings Egenskaber
forsikring.Egenskaber.Add(string, string);
        
// Forsikrings Adresse Egenskaber
var adresse = new VNS.GSPro.Adresse();
adresse.Egenskaber.Add(string, string);
forsikring.Adresser.Add(adresse);
        
// Genstand 
var genstand = new VNS.GSPro.Genstand(string, string);
        
// Dækninger
genstand.Daekninger.Add(string, string);
        
// Egenskaber
genstand.Egenskaber.Add(string, string);
        
// Ydelser
genstand.Ydelser.Add(string, string);
        
// Add genstand to forsikring
forsikring.Genstande.Add(genstand);
        
// Calculate price
var calcResult = gs.BeregnPris(forsikring, out string payloadXml); // Payloadxml will return the full object as XML

// Result properties
Console.WriteLine(calcResult.StatusKode); // Get status code
Console.WriteLine(calcResult.StatusTekst); // Get status text
Console.WriteLine(calcResult.SamletPris); // Get total price

// calcResult.Priser will return a collection of prices
// calcResult.Omkostninger will return a collection of costs

Console.WriteLine(calcResult.ToXml()); // Will return the full XML

// Create forsikring
var createResult = gs.OpretAftale(forsikring, out string payloadXml); // Payloadxml will return the full object as XML

// Result properties
Console.WriteLine(createResult.StatusKode); // Get status code
Console.WriteLine(createResult.StatusTekst); // Get status text
Console.WriteLine(createResult.PoliceNummer); // Get police number
Console.WriteLine(createResult.AftaleId); // Get aftale id
Console.WriteLine(createResult.KundeNummer); // Get customer number
Console.WriteLine(createResult.IndividId); // Get individ id

Console.WriteLine(createResult.ToXml()); // Will return the full XML

License

MIT

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.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
4.0.1 149 4/15/2024
4.0.0 134 12/14/2023
3.0.7 126 4/15/2024
3.0.6 169 10/10/2023
3.0.5 307 2/8/2023
3.0.4 293 2/8/2023
3.0.3 342 12/14/2022
3.0.2 330 12/14/2022
3.0.1 309 12/9/2022
3.0.0 313 12/6/2022
2.0.8 381 10/27/2022
2.0.7 541 9/13/2022
2.0.5 447 8/22/2022
2.0.4 480 7/11/2022
2.0.3 497 7/10/2022
2.0.2 480 7/10/2022
2.0.1 475 7/9/2022
2.0.0 492 6/29/2022