Class JOffenseFactorType
A data type for a set of details about a circumstance or factor that has an effect on an offense.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JOffenseFactorType : IEquatable<JOffenseFactorType>
Properties
Code
An offense factor designation. NIEM reference is j:OffenseFactorCode
Declaration
[DataMember(Name = "code")]
public List<UcrIncidentFactorCodeType> Code { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<UcrIncidentFactorCodeType> | An offense factor designation. NIEM reference is j:OffenseFactorCode |
Context
jOffenseFactorType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JOffenseFactorType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JOffenseFactorType.ContextEnum> | jOffenseFactorType JSON-LD context |
Description
A description of an offense factor. NIEM reference is j:OffenseFactorDescriptionText
Declaration
[DataMember(Name = "description")]
public List<NcTextType> Description { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of an offense factor. NIEM reference is j:OffenseFactorDescriptionText |
IncidentFactorSubCategory
A kind of specific detail or aspect of an incident factor or circumstance. NIEM reference is j:IncidentFactorSubCategoryText
Declaration
[DataMember(Name = "incidentFactorSubCategory")]
public List<NcTextType> IncidentFactorSubCategory { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of specific detail or aspect of an incident factor or circumstance. NIEM reference is j:IncidentFactorSubCategoryText |
IsKnown
True if a factor for an offense is known to be true; false if it is suspected, estimated, or otherwise. NIEM reference is j:OffenseFactorKnownIndicator
Declaration
[DataMember(Name = "isKnown")]
public List<NiemXsboolean> IsKnown { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if a factor for an offense is known to be true; false if it is suspected, estimated, or otherwise. NIEM reference is j:OffenseFactorKnownIndicator |
JustifiableHomicideCode
A designation of a justifiable homicide offense factor. NIEM reference is j:OffenseFactorJustifiableHomicideCode
Declaration
[DataMember(Name = "justifiableHomicideCode")]
public List<UcrJustifiableHomicideFactorsCodeType> JustifiableHomicideCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<UcrJustifiableHomicideFactorsCodeType> | A designation of a justifiable homicide offense factor. NIEM reference is j:OffenseFactorJustifiableHomicideCode |
NibrsAggravatedAssaultHomicideCode
A designation for an aggravated assault or homicide offense factor. NIEM reference is j:OffenseFactorNIBRSAggravatedAssaultHomicideCode
Declaration
[DataMember(Name = "nibrsAggravatedAssaultHomicideCode")]
public List<UcrAggravatedAssaultHomicideFactorsCodeType> NibrsAggravatedAssaultHomicideCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<UcrAggravatedAssaultHomicideFactorsCodeType> | A designation for an aggravated assault or homicide offense factor. NIEM reference is j:OffenseFactorNIBRSAggravatedAssaultHomicideCode |
Text
An offense factor designation. NIEM reference is j:OffenseFactorText
Declaration
[DataMember(Name = "text")]
public List<NcTextType> Text { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | An offense factor designation. NIEM reference is j:OffenseFactorText |
Methods
Equals(JOffenseFactorType)
Returns true if JOffenseFactorType instances are equal
Declaration
public bool Equals(JOffenseFactorType other)
Parameters
Type | Name | Description |
---|---|---|
JOffenseFactorType | other | Instance of JOffenseFactorType 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(JOffenseFactorType, JOffenseFactorType)
Declaration
public static bool operator ==(JOffenseFactorType left, JOffenseFactorType right)
Parameters
Type | Name | Description |
---|---|---|
JOffenseFactorType | left | |
JOffenseFactorType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JOffenseFactorType, JOffenseFactorType)
Declaration
public static bool operator !=(JOffenseFactorType left, JOffenseFactorType right)
Parameters
Type | Name | Description |
---|---|---|
JOffenseFactorType | left | |
JOffenseFactorType | right |
Returns
Type | Description |
---|---|
System.Boolean |