public string getMsgAttribute(string aciResponseData, string att)
        {
            using (TextReader sr = new StringReader(aciResponseData)) {
                var          serializer = new System.Xml.Serialization.XmlSerializer(typeof(TopicMessage));
                TopicMessage msg        = (TopicMessage)serializer.Deserialize(sr);
                switch (att)
                {
                case "unread":
                    return(msg.unread);

                case "sender":
                    return(msg.sender);

                case "receivers":
                    return(msg.receivers);

                case "contents":
                    return(msg.contents);

                case "emissionTimeStamp":
                    return(msg.emissionTimeStamp);

                default:
                    return(null);
                }
            }
        }
        public static string getMsgAttribute(string aciResponseData, string att)
        {
            using (TextReader sr = new StringReader(aciResponseData))
            {
                var          serializer = new System.Xml.Serialization.XmlSerializer(typeof(TopicMessage));
                TopicMessage msg        = (TopicMessage)serializer.Deserialize(sr);
                switch (att)
                {
                case IMessagingConcept.UNREAD:
                    return(msg.unread);

                case IMessagingConcept.SENDER:
                    return(msg.sender);

                case IMessagingConcept.RECEIVERS:
                    return(msg.receivers);

                case IMessagingConcept.CONTENTS:
                    return(msg.contents);

                case IMessagingConcept.EMISSION_TIMESTAMP:
                    return(msg.emissionTimeStamp);

                default:
                    return(null);
                }
            }
        }
        public TopicMessage msgDeserialization(string aciResponseData)
        {
            TopicMessage msg;

            using (TextReader sr = new StringReader(aciResponseData)) {
                var          serializer = new System.Xml.Serialization.XmlSerializer(typeof(TopicMessage));
                TopicMessage result     = (TopicMessage)serializer.Deserialize(sr);
                msg = result;
            }
            return(msg);
        }