Table of Contents

Class CompleteModel

Namespace
Arbiter.CommandQuery.Models
Assembly
Arbiter.CommandQuery.dll

Operation complete result model

public class CompleteModel
Inheritance
CompleteModel
Inherited Members

Properties

Message

Gets or sets the operation result message.

[JsonPropertyName("message")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Message { get; set; }

Property Value

string

The operation result message.

Successful

Gets or sets a value indicating whether operation was successful.

[JsonPropertyName("successful")]
public bool Successful { get; set; }

Property Value

bool

true if was successful; otherwise, false.

Methods

Fail(string?)

Creates a failed result with the given error message

public static CompleteModel Fail(string? message = null)

Parameters

message string

The error message associated with the failure.

Returns

CompleteModel

A new instance representing a failed result with the specified error message

Success(string?)

Creates a success result with the specified message.

public static CompleteModel Success(string? message = null)

Parameters

message string

The message associated with the success

Returns

CompleteModel

A new instance representing a success result