Table of Contents

Class Result

Namespace
Tharga.Fortnox
Assembly
Tharga.Fortnox.dll

Result object without payload.

public record Result : IEquatable<Result>
Inheritance
Result
Implements
Derived
Inherited Members

Properties

Code

Used for specific mathing of errors.

public string Code { get; protected init; }

Property Value

string

IsSuccess

True if the call was successful

public bool IsSuccess { get; }

Property Value

bool

Message

Response message.

public string Message { get; protected init; }

Property Value

string

Success

Build a success response without data.

public static Result Success { get; }

Property Value

Result

Methods

Fail(string, string)

Build a fail response without data.

public static Result Fail(string message, string code)

Parameters

message string
code string

Returns

Result