Class JEnforcementUnitType
A data type for a unit of an agency responsible for enforcing the law and maintaining peace.
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JEnforcementUnitType : NcOrganizationType, IEquatable<NcOrganizationType>, IEquatable<JEnforcementUnitType>
Properties
BeatIdentification
An identification of a local area for which an enforcement unit is responsible. NIEM reference is j:EnforcementUnitBeatIdentification
Declaration
[DataMember(Name = "beatIdentification")]
public List<NcIdentificationType> BeatIdentification { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcIdentificationType> | An identification of a local area for which an enforcement unit is responsible. NIEM reference is j:EnforcementUnitBeatIdentification |
Context
jEnforcementUnitType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JEnforcementUnitType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JEnforcementUnitType.ContextEnum> | jEnforcementUnitType JSON-LD context |
Identification
An identification of an enforcement unit. NIEM reference is j:EnforcementUnitIdentification
Declaration
[DataMember(Name = "identification")]
public List<NcIdentificationType> Identification { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcIdentificationType> | An identification of an enforcement unit. NIEM reference is j:EnforcementUnitIdentification |
Name
A name of an enforcement unit. NIEM reference is j:EnforcementUnitName
Declaration
[DataMember(Name = "name")]
public List<NcTextType> Name { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A name of an enforcement unit. NIEM reference is j:EnforcementUnitName |
NumberIdentification
An identification of an enforcement unit. NIEM reference is j:EnforcementUnitNumberIdentification
Declaration
[DataMember(Name = "numberIdentification")]
public List<NcIdentificationType> NumberIdentification { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcIdentificationType> | An identification of an enforcement unit. NIEM reference is j:EnforcementUnitNumberIdentification |
SectionIdentification
An identification of a section of an enforcement unit. NIEM reference is j:EnforcementUnitSectionIdentification
Declaration
[DataMember(Name = "sectionIdentification")]
public List<NcIdentificationType> SectionIdentification { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcIdentificationType> | An identification of a section of an enforcement unit. NIEM reference is j:EnforcementUnitSectionIdentification |
Methods
Equals(JEnforcementUnitType)
Returns true if JEnforcementUnitType instances are equal
Declaration
public bool Equals(JEnforcementUnitType other)
Parameters
Type | Name | Description |
---|---|---|
JEnforcementUnitType | other | Instance of JEnforcementUnitType 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(JEnforcementUnitType, JEnforcementUnitType)
Declaration
public static bool operator ==(JEnforcementUnitType left, JEnforcementUnitType right)
Parameters
Type | Name | Description |
---|---|---|
JEnforcementUnitType | left | |
JEnforcementUnitType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JEnforcementUnitType, JEnforcementUnitType)
Declaration
public static bool operator !=(JEnforcementUnitType left, JEnforcementUnitType right)
Parameters
Type | Name | Description |
---|---|---|
JEnforcementUnitType | left | |
JEnforcementUnitType | right |
Returns
Type | Description |
---|---|
System.Boolean |