using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FrameworkDAL.DTO.MessagingQueue { public class JMSStandardDTO { #region HeaderRegion private string destination; //Destination To Which Message is Sent e.g Queue or htpp address private long expiration; //Decicde expirartion time of Message and Calculated Current time + Time To Live private int priority; //Determines the Security Level 0 to 9 private long timestamp; //Get The Current Time in MilliSeconds private string messageid; //For Uniquely Identify the Message private string corelationid; //Linking Resonse Message To Requested Message private string replyto; //Sepecifying the Reply Queue Name private string type; //To Identity Type of Message when many message is coming private bool delivered; // True or False if the Message is already delivered to Client private string objectname; //Name Of the Object private string processedqueue; //Sepecifying the Processed Queue Name public string Destination { get { return destination; } set { destination = value; } } public enum DeliveryMode { Persistent = 0, //Logged Message During Send NonPersistent = 1 //Not Logging Message During Send } public long Expiration { get { return expiration; } set { expiration = value; } } public int Priority { get { return priority; } set { priority = value; } } public long TimeStamp { get { return timestamp; } set { timestamp = value; } } public string MessageId { get { return messageid; } set { messageid = value; } } public string CoRelationid { get { return corelationid; } set { corelationid = value; } } public string ReplyTo { get { return replyto; } set { replyto = value; } } public string Type { get { return type; } set { type = value; } } public bool Delivered { get { return delivered; } set { delivered = value; } } public string ObjectName { get { return objectname; } set { objectname = value; } } public string ProcessedQueueName { get { return processedqueue; } set { processedqueue = value; } } #endregion #region ApplicationProperties private string from; private string action; private string relatesto; public string From { get { return from; } set { from = value; } } public string Action { get { return action; } set { action = value; } } public string RelatesTo { get { return relatesto; } set { relatesto = value; } } #endregion #region StandardProperties private long jmsxuserid; //Contains the identity of the user sending the message. private long jmsxappId; //Identifier associated with the application sending the message private int jmsxdeliverycount; //Number Of Time Message has been Delivered private long jmsxgroupid; //Uniquely define a message as belonging to a particular group of messages private long jmsxgroupSeq; // uniquely define a message as being at a certain position public long JMSXUserID { get { return jmsxuserid; } set { jmsxuserid = value; } } public long JMSXAppID { get { return jmsxappId; } set { jmsxappId = value; } } public int JMSXDeliveryCount { get { return jmsxdeliverycount; } set { jmsxdeliverycount = value; } } public long JMSXGroupID { get { return jmsxgroupid; } set { jmsxgroupid = value; } } public long JMSXGroupSeq { get { return jmsxgroupSeq; } set { jmsxgroupSeq = value; } } #endregion #region Body private string body; //Always Should be Xml Body For Posting public string Body { get { return body; } set { body = value; } } #endregion private int numberofattempts = 0; public int NumberOfAttempts { get { return numberofattempts; } set { numberofattempts = value; } } } }