Class JRiskType
A data type for a field from COMPAS that identifies the risk that needs to be addressed during programming for community rehabilitation.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JRiskType : IEquatable<JRiskType>
Properties
Context
jRiskType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JRiskType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JRiskType.ContextEnum> | jRiskType JSON-LD context |
Level
A kind of risk level. NIEM reference is j:RiskLevelText
Declaration
[DataMember(Name = "level")]
public List<NcTextType> Level { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of risk level. NIEM reference is j:RiskLevelText |
ScoreValue
A numeric score for the risk based on assessment. NIEM reference is j:RiskScoreValue
Declaration
[DataMember(Name = "scoreValue")]
public List<NcNumericType> ScoreValue { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcNumericType> | A numeric score for the risk based on assessment. NIEM reference is j:RiskScoreValue |
Methods
Equals(JRiskType)
Returns true if JRiskType instances are equal
Declaration
public bool Equals(JRiskType other)
Parameters
Type | Name | Description |
---|---|---|
JRiskType | other | Instance of JRiskType 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(JRiskType, JRiskType)
Declaration
public static bool operator ==(JRiskType left, JRiskType right)
Parameters
Type | Name | Description |
---|---|---|
JRiskType | left | |
JRiskType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JRiskType, JRiskType)
Declaration
public static bool operator !=(JRiskType left, JRiskType right)
Parameters
Type | Name | Description |
---|---|---|
JRiskType | left | |
JRiskType | right |
Returns
Type | Description |
---|---|
System.Boolean |