/// <summary>
        /// Initializes a new instance of the <see cref="Manifest" /> class.
        /// </summary>
        /// <param name="carrier">carrier (required).</param>
        /// <param name="documents">documents.</param>
        /// <param name="fromAddress">fromAddress.</param>
        /// <param name="inductionPostalCode">inductionPostalCode.</param>
        /// <param name="manifestId">manifestId.</param>
        /// <param name="manifestTrackingNumber">manifestTrackingNumber.</param>
        /// <param name="parameters">parameters.</param>
        /// <param name="parcelTrackingNumbers">parcelTrackingNumbers.</param>
        /// <param name="submissionDate">submissionDate (required).</param>
        public Manifest(CarrierEnum carrier = default(CarrierEnum), List <Document> documents = default(List <Document>), Address fromAddress = default(Address), string inductionPostalCode = default(string), string manifestId = default(string), string manifestTrackingNumber = default(string), List <Parameter> parameters = default(List <Parameter>), List <string> parcelTrackingNumbers = default(List <string>), string submissionDate = default(string))
        {
            // to ensure "carrier" is required (not null)
            if (carrier == null)
            {
                throw new InvalidDataException("carrier is a required property for Manifest and cannot be null");
            }
            else
            {
                this.Carrier = carrier;
            }

            // to ensure "submissionDate" is required (not null)
            if (submissionDate == null)
            {
                throw new InvalidDataException("submissionDate is a required property for Manifest and cannot be null");
            }
            else
            {
                this.SubmissionDate = submissionDate;
            }

            this.Documents              = documents;
            this.FromAddress            = fromAddress;
            this.InductionPostalCode    = inductionPostalCode;
            this.ManifestId             = manifestId;
            this.ManifestTrackingNumber = manifestTrackingNumber;
            this.Parameters             = parameters;
            this.ParcelTrackingNumbers  = parcelTrackingNumbers;
        }
Esempio n. 2
0
 public MountPoint(string name, string location, string format, CarrierEnum carrier, string navSystem, float latitude, float longitude)
 {
     _name      = name;
     _location  = location;
     _format    = format;
     _carrier   = carrier;
     _navSystem = navSystem;
     _latitude  = latitude;
     _longitude = longitude;
 }
Esempio n. 3
0
 public NTRIPMountPoint(string name, string location, string format, CarrierEnum carrier, string navSystem, float longitude, float latitude)
     : this()
 {
     this[_name]      = name;
     this[_location]  = location;
     this[_format]    = format;
     this[_carrier]   = carrier;
     this[_navSystem] = navSystem;
     this[_longitude] = longitude;
     this[_latitude]  = latitude;
 }