Table of Contents

Class SupportAnswer

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

What an assistant had to say about a case.

public record SupportAnswer : IEquatable<SupportAnswer>
Inheritance
SupportAnswer
Implements
Inherited Members

Remarks

A record with no Body is a decline, and Reason says why in terms a person reading the case can use. Both outcomes are ordinary, so neither throws.

Properties

Answered

True when there is an answer to append.

public bool Answered { get; }

Property Value

bool

Body

The answer to append to the case, or null when the assistant declined.

public string Body { get; init; }

Property Value

string

Reason

Why the assistant declined, or null when it answered.

public string Reason { get; init; }

Property Value

string

Methods

Declined(string)

A decline, with a reason a person can read.

public static SupportAnswer Declined(string reason)

Parameters

reason string

Returns

SupportAnswer

FromBody(string)

An answer.

public static SupportAnswer FromBody(string body)

Parameters

body string

Returns

SupportAnswer