Class JDrivingRestrictionType
A data type for a restriction applicable to a driver permit or license.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JDrivingRestrictionType : IEquatable<JDrivingRestrictionType>
Properties
Context
jDrivingRestrictionType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JDrivingRestrictionType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JDrivingRestrictionType.ContextEnum> | jDrivingRestrictionType JSON-LD context |
CrashCode
A Restriction assigned to an individuals driver license by the license examiner. NIEM reference is j:CrashDrivingRestrictionCode
Declaration
[DataMember(Name = "crashCode")]
public List<MmuccDrivingRestrictionCodeType> CrashCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<MmuccDrivingRestrictionCodeType> | A Restriction assigned to an individuals driver license by the license examiner. NIEM reference is j:CrashDrivingRestrictionCode |
Description
A description of the nature of a restriction NIEM reference is j:DrivingRestrictionDescriptionText
Declaration
[DataMember(Name = "description")]
public List<NcTextType> Description { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of the nature of a restriction NIEM reference is j:DrivingRestrictionDescriptionText |
EndDate
A date on which a special restriction ends. NIEM reference is j:DrivingRestrictionEndDate
Declaration
[DataMember(Name = "endDate")]
public List<NcDateType> EndDate { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date on which a special restriction ends. NIEM reference is j:DrivingRestrictionEndDate |
Text
A category of a driving restriction. NIEM reference is j:DrivingRestrictionText
Declaration
[DataMember(Name = "text")]
public List<NcTextType> Text { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A category of a driving restriction. NIEM reference is j:DrivingRestrictionText |
Methods
Equals(JDrivingRestrictionType)
Returns true if JDrivingRestrictionType instances are equal
Declaration
public bool Equals(JDrivingRestrictionType other)
Parameters
Type | Name | Description |
---|---|---|
JDrivingRestrictionType | other | Instance of JDrivingRestrictionType 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(JDrivingRestrictionType, JDrivingRestrictionType)
Declaration
public static bool operator ==(JDrivingRestrictionType left, JDrivingRestrictionType right)
Parameters
Type | Name | Description |
---|---|---|
JDrivingRestrictionType | left | |
JDrivingRestrictionType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JDrivingRestrictionType, JDrivingRestrictionType)
Declaration
public static bool operator !=(JDrivingRestrictionType left, JDrivingRestrictionType right)
Parameters
Type | Name | Description |
---|---|---|
JDrivingRestrictionType | left | |
JDrivingRestrictionType | right |
Returns
Type | Description |
---|---|
System.Boolean |