public JObject GetMessagge(string QueueName) { string Messagge = QueuManager.GetQueueManager().GetMessageInQueue(QueueName); JObject ToReturn = new JObject(); ToReturn.Add(new JProperty("name", QueueName)); ToReturn.Add(new JProperty("message", Messagge)); return(new JObject(new JProperty("queue", ToReturn))); }
public JObject AddMessage(string QueueName, string Message) { QueuManager.GetQueueManager().AddMessageInQueue(QueueName, Message); JObject ToReturn = new JObject(); ToReturn.Add(new JProperty("name", QueueName)); ToReturn.Add(new JProperty("message", Message)); return(new JObject(new JProperty("added", ToReturn))); }
public JObject GetQueue() { return(QueuManager.GetQueueManager().GetQueues()); }