/// <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) { distList_.Clear(); int count = reader.ReadByte(); for (int i = 0; i < count; i++) { dl_member_details dtls = new dl_member_details(); dtls.GetFromStream(reader); distList_.Add(dtls); } }