Class MeaningTranslation
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
Language
The languages of the translation.
[JsonPropertyName("language")]
[JsonInclude]
public MeaningTranslationLanguage? Language { get; }
Property Value
Paragraphs
The translated paragraphs.
[JsonPropertyName("paragraphs")]
[JsonInclude]
public IReadOnlyList<string> Paragraphs { get; }
Property Value
Title
The translated title.
[JsonPropertyName("title")]
[JsonInclude]
public string? Title { get; }
Property Value
Methods
Equals(MeaningTranslation?)
Indicates whether both translations carry the same text and paragraphs.
public bool Equals(MeaningTranslation? other)
Parameters
otherMeaningTranslationThe 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.