Table of Contents

Class EmptyTTSMessageGeneratorContext

Namespace
Cryville.EEW.TTS
Assembly
Cryville.EEW.TTS.dll
public class EmptyTTSMessageGeneratorContext : ITTSMessageGeneratorContext
Inheritance
EmptyTTSMessageGeneratorContext
Implements
Inherited Members

Properties

Instance

The shared instance of the EmptyTTSMessageGeneratorContext class.
public static EmptyTTSMessageGeneratorContext Instance { get; }

Property Value

EmptyTTSMessageGeneratorContext

NowcastWarningDelayTolerance

The delay tolerance before a nowcast warning event cannot trigger sounds and TTS.
public TimeSpan NowcastWarningDelayTolerance { get; }

Property Value

TimeSpan

Methods

NameLocation(double, double, CultureInfo?, ref CultureInfo, out string?)

Names a location in a culture.
public bool NameLocation(double lat, double lon, CultureInfo? localCulture, ref CultureInfo targetCulture, out string? name)

Parameters

lat double
The latitude of the location.
lon double
The longitude of the location.
localCulture CultureInfo
The local culture supported by the event itself.
targetCulture CultureInfo
The target culture of the location name. When the method returns, set to the actual culture of the location name.
name string
The location name.

Returns

bool
Whether the name is given by the context. false if the generator should provide a local name instead.