/// <summary> /// Primary constructor for the mod_dl PDU /// </summary> /// <param name="type">The operation to perform</param> /// <param name="source">ESME source address</param> /// <param name="dl_name">Distribution list name</param> /// <param name="details">The member details to add/remove</param> public mod_dl(DistributionListModifyType type, address source, string dl_name, dl_member_details details) : this() { type_ = type; sourceAddr_ = source; dlname_.Value = dl_name; memberDetails_ = details; }
/// <summary> /// This method implements the ISupportSmppByteStream.GetFromStream /// method so that the PDU can serialize itself from the data stream. /// </summary> /// <param name="reader">StreamReader</param> public override void GetFromStream(SmppReader reader) { reader.ReadObject(sourceAddr_); reader.ReadObject(dlname_); type_ = (DistributionListModifyType)reader.ReadByte(); if (type_ == DistributionListModifyType.AddMember) { reader.ReadObject(memberDetails_); } else { memberDetails_.Address = new address(); memberDetails_.Description = reader.ReadString(); } }