Class TTSEntry
Represents an entry sent to a TTS worker.
public sealed record TTSEntry : IEquatable<TTSEntry>
- Inheritance
-
TTSEntry
- Implements
- Inherited Members
Constructors
TTSEntry(CultureInfo, string?, string, int, string?, bool)
Represents an entry sent to a TTS worker.
public TTSEntry(CultureInfo Locale, string? Title, string Content, int Priority, string? Sound = null, bool IsRepeated = false)
Parameters
LocaleCultureInfo- The locale of the content.
Titlestring- The title of the entry, if non-null, used when the entry is being repeated after interrupted; null if the entry should not be repeated after interrupted.
Contentstring- The content to be spoken.
Priorityint- The priority (a lower number indicates higher priority).
Soundstring- The sound to be played.
IsRepeatedbool- Whether the entry is interrupted and to be repeated.
Properties
Content
The content to be spoken.
public string Content { get; init; }
Property Value
IsRepeated
Whether the entry is interrupted and to be repeated.
public bool IsRepeated { get; init; }
Property Value
IssueTime
The time when the entry is created in UTC.
public DateTime IssueTime { get; set; }
Property Value
Locale
The locale of the content.
public CultureInfo Locale { get; init; }
Property Value
Priority
The priority (a lower number indicates higher priority).
public int Priority { get; }
Property Value
RevisionKey
Copied from RevisionKey.
public IReportRevisionKey? RevisionKey { get; }
Property Value
SecondaryEntry
The TTS entry to be inserted into the queue when this TTS entry starts being spoken.
public TTSEntry? SecondaryEntry { get; }
Property Value
Sound
The sound to be played.
public string? Sound { get; set; }
Property Value
Title
The title of the entry, if non-null, used when the entry is being repeated after interrupted; null if the entry should not be repeated after interrupted.
public string? Title { get; init; }
Property Value
UnitKeys
Copied from UnitKeys.
public IReadOnlyCollection<IReportUnitKey>? UnitKeys { get; }
Property Value
UrgentEntry
The TTS entry to be inserted into the queue before this TTS entry is inserted.
public TTSEntry? UrgentEntry { get; set; }