Class MVoyageType
A data type for a journey from one place to another.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class MVoyageType : IEquatable<MVoyageType>
Properties
BeginDateTime
A date and time a voyage begins. NIEM reference is m:VoyageBeginDateTime
Declaration
[DataMember(Name = "beginDateTime")]
public List<NcDateType> BeginDateTime { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date and time a voyage begins. NIEM reference is m:VoyageBeginDateTime |
Category
A kind of a voyage. NIEM reference is m:VoyageCategoryText
Declaration
[DataMember(Name = "category")]
public List<NcTextType> Category { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of a voyage. NIEM reference is m:VoyageCategoryText |
Context
mVoyageType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public MVoyageType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<MVoyageType.ContextEnum> | mVoyageType JSON-LD context |
DestinationLocation
A destination of a voyage. NIEM reference is m:VoyageDestinationLocation
Declaration
[DataMember(Name = "destinationLocation")]
public List<NcLocationType> DestinationLocation { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcLocationType> | A destination of a voyage. NIEM reference is m:VoyageDestinationLocation |
EndDateTime
A date and time a voyage ends. NIEM reference is m:VoyageEndDateTime
Declaration
[DataMember(Name = "endDateTime")]
public List<NcDateType> EndDateTime { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date and time a voyage ends. NIEM reference is m:VoyageEndDateTime |
Identification
An identification of a voyage. NIEM reference is m:VoyageIdentification
Declaration
[DataMember(Name = "identification")]
public List<NcIdentificationType> Identification { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcIdentificationType> | An identification of a voyage. NIEM reference is m:VoyageIdentification |
OriginLocation
An origin of a voyage. NIEM reference is m:VoyageOriginLocation
Declaration
[DataMember(Name = "originLocation")]
public List<NcLocationType> OriginLocation { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcLocationType> | An origin of a voyage. NIEM reference is m:VoyageOriginLocation |
Summary
A summary or description of a voyage. NIEM reference is m:VoyageSummaryText
Declaration
[DataMember(Name = "summary")]
public List<NcTextType> Summary { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A summary or description of a voyage. NIEM reference is m:VoyageSummaryText |
VesselUse
A description of the use or purpose of a vessel on a voyage. NIEM reference is m:VoyageVesselUseText
Declaration
[DataMember(Name = "vesselUse")]
public List<NcTextType> VesselUse { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of the use or purpose of a vessel on a voyage. NIEM reference is m:VoyageVesselUseText |
Methods
Equals(MVoyageType)
Returns true if MVoyageType instances are equal
Declaration
public bool Equals(MVoyageType other)
Parameters
Type | Name | Description |
---|---|---|
MVoyageType | other | Instance of MVoyageType 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(MVoyageType, MVoyageType)
Declaration
public static bool operator ==(MVoyageType left, MVoyageType right)
Parameters
Type | Name | Description |
---|---|---|
MVoyageType | left | |
MVoyageType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(MVoyageType, MVoyageType)
Declaration
public static bool operator !=(MVoyageType left, MVoyageType right)
Parameters
Type | Name | Description |
---|---|---|
MVoyageType | left | |
MVoyageType | right |
Returns
Type | Description |
---|---|
System.Boolean |