Class NcWeaponType
A data type for a property item used as an instrument of attack or defense.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcWeaponType : IEquatable<NcWeaponType>
Properties
Context
ncWeaponType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcWeaponType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcWeaponType.ContextEnum> | ncWeaponType JSON-LD context |
InvolvedInActivity
An activity in which a weapon was involved. NIEM reference is nc:WeaponInvolvedInActivity
Declaration
[DataMember(Name = "involvedInActivity")]
public List<NcActivityType> InvolvedInActivity { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcActivityType> | An activity in which a weapon was involved. NIEM reference is nc:WeaponInvolvedInActivity |
RoleOfItem
An entity of whom the role object is a function. NIEM reference is nc:RoleOfItem
Declaration
[DataMember(Name = "roleOfItem")]
public List<NcItemType> RoleOfItem { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcItemType> | An entity of whom the role object is a function. NIEM reference is nc:RoleOfItem |
Usage
A way or manner in which a weapon was used. NIEM reference is nc:WeaponUsageText
Declaration
[DataMember(Name = "usage")]
public List<NcTextType> Usage { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A way or manner in which a weapon was used. NIEM reference is nc:WeaponUsageText |
User
A person who uses a weapon. NIEM reference is nc:WeaponUser
Declaration
[DataMember(Name = "user")]
public List<NcPersonType> User { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcPersonType> | A person who uses a weapon. NIEM reference is nc:WeaponUser |
Methods
Equals(NcWeaponType)
Returns true if NcWeaponType instances are equal
Declaration
public bool Equals(NcWeaponType other)
Parameters
Type | Name | Description |
---|---|---|
NcWeaponType | other | Instance of NcWeaponType 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(NcWeaponType, NcWeaponType)
Declaration
public static bool operator ==(NcWeaponType left, NcWeaponType right)
Parameters
Type | Name | Description |
---|---|---|
NcWeaponType | left | |
NcWeaponType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcWeaponType, NcWeaponType)
Declaration
public static bool operator !=(NcWeaponType left, NcWeaponType right)
Parameters
Type | Name | Description |
---|---|---|
NcWeaponType | left | |
NcWeaponType | right |
Returns
Type | Description |
---|---|
System.Boolean |