Table of Contents

Class MeaningTranslation

Namespace
Nyra.Entities
Assembly
Nyra.dll

Translated counterpart of a meaning text.

public sealed record MeaningTranslation : IEquatable<MeaningTranslation>
Inheritance
MeaningTranslation
Implements
Inherited Members

Properties

Description

The translated description.

[JsonPropertyName("description")]
[JsonInclude]
public string? Description { get; }

Property Value

string

Language

The languages of the translation.

[JsonPropertyName("language")]
[JsonInclude]
public MeaningTranslationLanguage? Language { get; }

Property Value

MeaningTranslationLanguage

Paragraphs

The translated paragraphs.

[JsonPropertyName("paragraphs")]
[JsonInclude]
public IReadOnlyList<string> Paragraphs { get; }

Property Value

IReadOnlyList<string>

Title

The translated title.

[JsonPropertyName("title")]
[JsonInclude]
public string? Title { get; }

Property Value

string

Methods

Equals(MeaningTranslation?)

Indicates whether both translations carry the same text and paragraphs.

public bool Equals(MeaningTranslation? other)

Parameters

other MeaningTranslation

The translation to compare with.

Returns

bool

Whether every member matches, the paragraphs compared by content.

GetHashCode()

Returns a hash of the translation's comparable members.

public override int GetHashCode()

Returns

int

The hash code.

ToString()

Returns the translation as its title and paragraph count.

public override string ToString()

Returns

string

The translation's title and paragraph count.