Table of Contents

Interface ITTSMessageGeneratorContext

Namespace
Cryville.EEW.TTS
Assembly
Cryville.EEW.TTS.dll
Represents a context used in TTS message generators.
public interface ITTSMessageGeneratorContext

Properties

NowcastWarningDelayTolerance

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

Property Value

TimeSpan

Methods

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

Names a location in a culture.
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.