Class MeaningData
The meaning text of a track, a summary of what the song is about.
public sealed record MeaningData : IEquatable<MeaningData>
- Inheritance
-
MeaningData
- Implements
- Inherited Members
Properties
Description
The description of the meaning.
[JsonPropertyName("description")]
[JsonInclude]
public string? Description { get; }
Property Value
ErrorMessage
[JsonPropertyName("message")]
[JsonInclude]
public string? ErrorMessage { get; }
Property Value
ErrorSeverity
[JsonPropertyName("severity")]
[JsonInclude]
public ErrorSeverity? ErrorSeverity { get; }
Property Value
Remarks
Null when the server reports the error as a bare message, set when it reports the severity in-band.
Meta
The metadata of the meaning.
[JsonPropertyName("meaningMeta")]
[JsonInclude]
public MeaningMeta? Meta { get; }
Property Value
Paragraphs
The paragraphs of the meaning.
[JsonPropertyName("paragraphs")]
[JsonInclude]
public IReadOnlyList<string> Paragraphs { get; }
Property Value
Provider
Provider that produced the meaning, such as wikipedia or letrasmus.
[JsonPropertyName("provider")]
[JsonInclude]
public string? Provider { get; }
Property Value
Song
The song the meaning is about.
[JsonPropertyName("song")]
[JsonInclude]
public MeaningSong? Song { get; }
Property Value
Title
The title of the meaning.
[JsonPropertyName("title")]
[JsonInclude]
public string? Title { get; }
Property Value
Translation
Machine translation of the meaning, requested through the language parameter.
[JsonPropertyName("translation")]
[JsonInclude]
public MeaningTranslation? Translation { get; }
Property Value
Type
What the provider took the meaning for, track or artist.
[JsonPropertyName("type")]
[JsonInclude]
public string? Type { get; }
Property Value
Url
The URL the meaning was loaded from.
[JsonPropertyName("url")]
[JsonInclude]
public string? Url { get; }
Property Value
Methods
Equals(MeaningData?)
Indicates whether both meanings carry the same members.
public bool Equals(MeaningData? other)
Parameters
otherMeaningDataThe meaning to compare with.
Returns
- bool
Whether every member matches, the paragraphs compared by content.
GetHashCode()
Returns a hash of the meaning's comparable members.
public override int GetHashCode()
Returns
- int
The hash code.
ToString()
Returns the meaning as its title and paragraph count.
public override string ToString()
Returns
- string
The meaning's title and paragraph count.