/// <summary> /// Primary constructor for the replace_sm PDU /// </summary> /// <param name="msgid">Message ID of the message to be replaced.</param> /// <param name="stype">Service Type</param> /// <param name="saddr">Source Address</param> /// <param name="delTime">Delivery Time</param> /// <param name="valPeriod">Validation Period</param> /// <param name="regDelivery">Registered Delivery</param> /// <param name="defMsgId">Default Msg ID</param> /// <param name="msg">Message</param> public replace_sm(string msgid, string stype, address saddr, SmppTime delTime, SmppTime valPeriod, registered_delivery regDelivery, byte defMsgId, string msg) : this() { this.MessageID = msgid; this.ServiceType = stype; this.SourceAddress = saddr; this.DeliveryTime = delTime; this.ValidityPeriod = valPeriod; this.RegisteredDelivery = regDelivery; this.SmDefaultMessageID = defMsgId; this.Message = msg; }
/// <summary> /// Primary constructor for the submit_multi PDU /// </summary> /// <param name="stype">Service Type</param> /// <param name="saddr">Source Address</param> /// <param name="esm">ESM</param> /// <param name="protid">Protocol ID</param> /// <param name="priority">Priority</param> /// <param name="delTime">Delivery Time</param> /// <param name="valPeriod">Validation Period</param> /// <param name="regDelivery">Registered Delivery</param> /// <param name="replace">Replace If present</param> /// <param name="dataCoding">Data Coding type</param> /// <param name="defMsgId">Default Msg ID</param> /// <param name="msg">Message</param> public submit_multi(string stype, address saddr, esm_class esm, byte protid, MessagePriority priority, SmppTime delTime, SmppTime valPeriod, registered_delivery regDelivery, bool replace, DataEncoding dataCoding, byte defMsgId, string msg) : this() { this.ServiceType = stype; this.SourceAddress = saddr; this.EsmClass = esm; this.ProtocolID = protid; this.PriorityFlag = priority; this.DeliveryTime = delTime; this.ValidityPeriod = valPeriod; this.RegisteredDelivery = regDelivery; this.ReplaceExisting = replace; this.DataCoding = dataCoding; this.SmDefaultMessageID = defMsgId; this.Message = msg; }
/// <summary> /// Primary constructor for the broadcast_sm PDU /// </summary> /// <param name="stype">Service Type</param> /// <param name="saddr">Source Address</param> /// <param name="messageId">Message Id</param> /// <param name="priority">Priority</param> /// <param name="delTime">Delivery Time</param> /// <param name="valPeriod">Validation Period</param> /// <param name="replace">Replace If present</param> /// <param name="dataCoding">Data Coding type</param> /// <param name="defMsgId">Default Msg ID</param> /// <param name="areaId">Geographical area ID</param> /// <param name="contentType">Content type</param> /// <param name="repeatCount">Repeat count</param> /// <param name="frequency">Frequency interval</param> public broadcast_sm(string stype, address saddr, string messageId, MessagePriority priority, SmppTime delTime, SmppTime valPeriod, bool replace, DataEncoding dataCoding, byte defMsgId, broadcast_area_identifier areaId, broadcast_content_type contentType, int repeatCount, broadcast_frequency_interval frequency) : this() { this.ServiceType = stype; this.SourceAddress = saddr; this.PriorityFlag = priority; this.DeliveryTime = delTime; this.ValidityPeriod = valPeriod; this.ReplaceExisting = replace; this.DataCoding = dataCoding; this.SmDefaultMessageID = defMsgId; this.areaId_ = areaId; this.contentType_ = contentType; this.repNum_.Value = repeatCount; this.freqInt_ = frequency; }