/// <summary> /// Overloaded Constructor /// </summary> /// <param name="source">Is this the You or Contra</param> /// <param name="message">Text of the chat message</param> public MessagePackage(PartyEnum source, string message) { Source = source; Message = message; }
/// <summary> /// Initializes a new instance of the <see cref="CarrierPayment" /> class. /// </summary> /// <param name="accountNumber">accountNumber.</param> /// <param name="countryCode">countryCode.</param> /// <param name="party">party (required).</param> /// <param name="postalCode">postalCode.</param> /// <param name="typeOfCharge">typeOfCharge (required).</param> public CarrierPayment(string accountNumber = default(string), string countryCode = default(string), PartyEnum party = default(PartyEnum), string postalCode = default(string), TypeOfChargeEnum typeOfCharge = default(TypeOfChargeEnum)) { // to ensure "party" is required (not null) if (party == null) { throw new InvalidDataException("party is a required property for CarrierPayment and cannot be null"); } else { this.Party = party; } // to ensure "typeOfCharge" is required (not null) if (typeOfCharge == null) { throw new InvalidDataException("typeOfCharge is a required property for CarrierPayment and cannot be null"); } else { this.TypeOfCharge = typeOfCharge; } this.AccountNumber = accountNumber; this.CountryCode = countryCode; this.PostalCode = postalCode; }