Class JSupervisionRestrictionType
A data type for a restriction on a supervised person.
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JSupervisionRestrictionType : NcActivityType, IEquatable<NcActivityType>, IEquatable<JSupervisionRestrictionType>
Properties
Behavior
A behavior a supervised person is restricted from doing. NIEM reference is j:SupervisionRestrictionBehaviorText
Declaration
[DataMember(Name = "behavior")]
public List<NcTextType> Behavior { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A behavior a supervised person is restricted from doing. NIEM reference is j:SupervisionRestrictionBehaviorText |
Code
A supervision restriction. NIEM reference is j:SupervisionRestrictionCode
Declaration
[DataMember(Name = "code")]
public List<NcSupervisionRestrictionCodeType> Code { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcSupervisionRestrictionCodeType> | A supervision restriction. NIEM reference is j:SupervisionRestrictionCode |
Context
jSupervisionRestrictionType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JSupervisionRestrictionType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JSupervisionRestrictionType.ContextEnum> | jSupervisionRestrictionType JSON-LD context |
Location
A location a supervised person is restricted from going to. NIEM reference is j:SupervisionRestrictionLocation
Declaration
[DataMember(Name = "location")]
public List<NcLocationType> Location { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcLocationType> | A location a supervised person is restricted from going to. NIEM reference is j:SupervisionRestrictionLocation |
Person
A person a supervised person is restricted from involvement. NIEM reference is j:SupervisionRestrictionPerson
Declaration
[DataMember(Name = "person")]
public List<NcPersonType> Person { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcPersonType> | A person a supervised person is restricted from involvement. NIEM reference is j:SupervisionRestrictionPerson |
SupervisionRestriction
A restriction on a supervised person. NIEM reference is j:SupervisionRestriction
Declaration
[DataMember(Name = "supervisionRestriction")]
public List<JSupervisionRestrictionType> SupervisionRestriction { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<JSupervisionRestrictionType> | A restriction on a supervised person. NIEM reference is j:SupervisionRestriction |
Methods
Equals(JSupervisionRestrictionType)
Returns true if JSupervisionRestrictionType instances are equal
Declaration
public bool Equals(JSupervisionRestrictionType other)
Parameters
Type | Name | Description |
---|---|---|
JSupervisionRestrictionType | other | Instance of JSupervisionRestrictionType 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(JSupervisionRestrictionType, JSupervisionRestrictionType)
Declaration
public static bool operator ==(JSupervisionRestrictionType left, JSupervisionRestrictionType right)
Parameters
Type | Name | Description |
---|---|---|
JSupervisionRestrictionType | left | |
JSupervisionRestrictionType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JSupervisionRestrictionType, JSupervisionRestrictionType)
Declaration
public static bool operator !=(JSupervisionRestrictionType left, JSupervisionRestrictionType right)
Parameters
Type | Name | Description |
---|---|---|
JSupervisionRestrictionType | left | |
JSupervisionRestrictionType | right |
Returns
Type | Description |
---|---|
System.Boolean |