Table of Contents

Class ReportModel

Namespace
Cryville.EEW.Report
Assembly
Cryville.EEW.dll
Represents a report of an event.
public sealed record ReportModel : IEquatable<ReportModel>
Inheritance
ReportModel
Implements
Inherited Members

Properties

Culture

The culture of the report.
public CultureInfo Culture { get; }

Property Value

CultureInfo

GroupKeys

The group keys of the report.
public ICollection<IReportGroupKey> GroupKeys { get; }

Property Value

ICollection<IReportGroupKey>

InvalidatedTime

The time when the report is to be invalidated.
public DateTimeOffset? InvalidatedTime { get; set; }

Property Value

DateTimeOffset?

IsExcludedFromHistory

Whether the report should be excluded from the history list.
public bool IsExcludedFromHistory { get; set; }

Property Value

bool

Location

The location of the event.
public string? Location { get; set; }

Property Value

string

LocationSpecificity

The specificity of the location described by Location.
public int LocationSpecificity { get; set; }

Property Value

int

Remarks

This value conforms to the values of the admin_level key in OpenStreetMap, with the following extented values.

0Unknown specificity or unknown location
12A specific point that is inside the smallest possible local administrative region

Use the value 3 for a location that conforms to F-E regionalization.

Model

The original data model of the report.
public object? Model { get; set; }

Property Value

object

Remarks

It is not necessary to set this property in the generator if the model is the input model.

Predicate

The predicate of the report.
public string? Predicate { get; set; }

Property Value

string

Properties

The properties of the event.
public IList<ReportProperty> Properties { get; }

Property Value

IList<ReportProperty>

RevisionKey

The revision key of the report.
public IReportRevisionKey? RevisionKey { get; set; }

Property Value

IReportRevisionKey

Source

The source of the report.
public string? Source { get; set; }

Property Value

string

Time

The time of the event.
public DateTimeOffset? Time { get; set; }

Property Value

DateTimeOffset?

TimeZone

The time zone of the source.
public TimeZoneInfo? TimeZone { get; set; }

Property Value

TimeZoneInfo

Title

The title of the report.
public string? Title { get; set; }

Property Value

string

UnitKeys

The unit keys of the report.
public IReadOnlyCollection<IReportUnitKey> UnitKeys { get; }

Property Value

IReadOnlyCollection<IReportUnitKey>

Remarks

This collection is read-only. Add unit keys by calling the Add(T) method on GroupKeys.

UtcIssueTime

The time when the report is issued, in UTC.
public DateTime UtcIssueTime { get; set; }

Property Value

DateTime