Class JWitnessType
A data type for a person who has observed an incident.
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JWitnessType : IEquatable<JWitnessType>
Properties
AccountDescription
A description or narrative of an incident as reported by the witness. NIEM reference is j:WitnessAccountDescriptionText
Declaration
[DataMember(Name = "accountDescription")]
public List<NcTextType> AccountDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description or narrative of an incident as reported by the witness. NIEM reference is j:WitnessAccountDescriptionText |
Context
jWitnessType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JWitnessType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JWitnessType.ContextEnum> | jWitnessType JSON-LD context |
Date
A date a witness observed an incident. NIEM reference is j:WitnessDate
Declaration
[DataMember(Name = "date")]
public List<NcDateType> Date { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date a witness observed an incident. NIEM reference is j:WitnessDate |
Identification
An identification number or string identifying a witness. NIEM reference is j:WitnessIdentification
Declaration
[DataMember(Name = "identification")]
public List<NcIdentificationType> Identification { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcIdentificationType> | An identification number or string identifying a witness. NIEM reference is j:WitnessIdentification |
IsReportVerified
True if a witness's story has been corroborated or validated; false otherwise. NIEM reference is j:WitnessReportVerifiedIndicator
Declaration
[DataMember(Name = "isReportVerified")]
public List<NiemXsboolean> IsReportVerified { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if a witness's story has been corroborated or validated; false otherwise. NIEM reference is j:WitnessReportVerifiedIndicator |
IsWillTestify
True if a witness is willing to testify; false otherwise. NIEM reference is j:WitnessWillTestifyIndicator
Declaration
[DataMember(Name = "isWillTestify")]
public List<NiemXsboolean> IsWillTestify { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if a witness is willing to testify; false otherwise. NIEM reference is j:WitnessWillTestifyIndicator |
LocationDescription
A description of a location from which the witness observed an incident. NIEM reference is j:WitnessLocationDescriptionText
Declaration
[DataMember(Name = "locationDescription")]
public List<NcTextType> LocationDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of a location from which the witness observed an incident. NIEM reference is j:WitnessLocationDescriptionText |
RoleOfPerson
A person of whom the role object is a function. NIEM reference is nc:RoleOfPerson
Declaration
[DataMember(Name = "roleOfPerson")]
public List<NcPersonType> RoleOfPerson { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcPersonType> | A person of whom the role object is a function. NIEM reference is nc:RoleOfPerson |
SequenceNumber
A sequential number assigned to the witness of an incident. NIEM reference is j:WitnessSequenceNumberText
Declaration
[DataMember(Name = "sequenceNumber")]
public List<NcTextType> SequenceNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A sequential number assigned to the witness of an incident. NIEM reference is j:WitnessSequenceNumberText |
SpecialCondition
A special condition a witness requires to testify. NIEM reference is j:WitnessSpecialConditionText
Declaration
[DataMember(Name = "specialCondition")]
public List<NcTextType> SpecialCondition { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A special condition a witness requires to testify. NIEM reference is j:WitnessSpecialConditionText |
Methods
Equals(JWitnessType)
Returns true if JWitnessType instances are equal
Declaration
public bool Equals(JWitnessType other)
Parameters
Type | Name | Description |
---|---|---|
JWitnessType | other | Instance of JWitnessType to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(JWitnessType, JWitnessType)
Declaration
public static bool operator ==(JWitnessType left, JWitnessType right)
Parameters
Type | Name | Description |
---|---|---|
JWitnessType | left | |
JWitnessType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JWitnessType, JWitnessType)
Declaration
public static bool operator !=(JWitnessType left, JWitnessType right)
Parameters
Type | Name | Description |
---|---|---|
JWitnessType | left | |
JWitnessType | right |
Returns
Type | Description |
---|---|
System.Boolean |