Class ReportableModelBase
- Namespace
- CSF.Screenplay.ReportModel
- Assembly
- CSF.Screenplay.dll
Model represents anything which may be reported-upon within an IPerformance.
[JsonPolymorphic(TypeDiscriminatorPropertyName = "Type")]
[JsonDerivedType(typeof(ActorCreatedReport), "ActorCreatedReport")]
[JsonDerivedType(typeof(ActorGainedAbilityReport), "ActorGainedAbilityReport")]
[JsonDerivedType(typeof(ActorSpotlitReport), "ActorSpotlitReport")]
[JsonDerivedType(typeof(SpotlightTurnedOffReport), "SpotlightTurnedOffReport")]
[JsonDerivedType(typeof(PerformableReport), "PerformableReport")]
public abstract class ReportableModelBase
- Inheritance
-
ReportableModelBase
- Derived
- Inherited Members
Remarks
This base model has subclasses for each of the specific types of event which may be reported-upon.
Properties
ActorName
Gets or sets the name of the Actor who is associated with this report.
public string ActorName { get; set; }
Property Value
Remarks
Almost all reportables involve an actor, it is rare for this value to be unset (IE: null).
Report
Gets or sets the human-readable text of the report.
public string Report { get; set; }