コード例 #1
0
        //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\
        #region --Misc Methods (Public)--
        public XElement toXElement(XNamespace ns)
        {
            XElement pubSubOptNode = new XElement(ns + "publish-options");

            OPTIONS.addToXElement(pubSubOptNode);
            return(pubSubOptNode);
        }
コード例 #2
0
        //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\
        #region --Misc Methods (Public)--


        #endregion

        #region --Misc Methods (Private)--
        protected override XElement getQuery()
        {
            XNamespace qNs   = Consts.XML_XEP_0045_NAMESPACE + "#" + Utils.mucAffiliationToString(CONFIG_LEVEL);
            XElement   query = new XElement(qNs + "query");

            ROOM_CONFIG.addToXElement(query);
            return(query);
        }
コード例 #3
0
        //--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\
        #region --Set-, Get- Methods--


        #endregion
        //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\
        #region --Misc Methods (Public)--


        #endregion

        #region --Misc Methods (Private)--


        #endregion

        #region --Misc Methods (Protected)--
        protected override XElement getQuery()
        {
            XNamespace ns         = Consts.XML_XEP_0336_NAMESPACE;
            XElement   cancelNode = new XElement(ns + "cancel");

            FORM.addToXElement(cancelNode);
            return(cancelNode);
        }
コード例 #4
0
        //--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\
        #region --Set-, Get- Methods--


        #endregion
        //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\
        #region --Misc Methods (Public)--


        #endregion

        #region --Misc Methods (Private)--


        #endregion

        #region --Misc Methods (Protected)--
        protected override XElement getQuery()
        {
            XNamespace ns         = Consts.XML_XEP_0336_NAMESPACE;
            XElement   submitNode = new XElement(ns + "submit");

            submitNode.Add(new XAttribute("xml:lang", LANG));
            FORM.addToXElement(submitNode);
            return(submitNode);
        }
コード例 #5
0
        //--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\
        #region --Set-, Get- Methods--
        protected override void addContent(XElement node, XNamespace ns)
        {
            XElement createNode = new XElement(ns + "create");

            createNode.Add(new XAttribute("node", NODE_NAME));
            node.Add(createNode);

            if (NODE_CONFIG != null)
            {
                XElement configNode = new XElement(ns + "configure");
                NODE_CONFIG.addToXElement(configNode);
                node.Add(configNode);
            }
        }
コード例 #6
0
        //--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\
        #region --Set-, Get- Methods--


        #endregion
        //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\
        #region --Misc Methods (Public)--
        public override XElement toXElement()
        {
            XElement messageNode = new XElement("message");

            messageNode.Add(new XAttribute("from", FROM));
            messageNode.Add(new XAttribute("to", TO));

            XNamespace ns         = Consts.XML_XEP_0336_NAMESPACE;
            XElement   updateNode = new XElement(ns + "updated");

            updateNode.Add(new XAttribute("sessionVariable", SESSION_VARIABLE));
            updateNode.Add(new XAttribute("xml:lang", LANG));
            FORM.addToXElement(updateNode);
            messageNode.Add(updateNode);

            return(messageNode);
        }
コード例 #7
0
        //--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\
        #region --Set-, Get- Methods--


        #endregion
        //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\
        #region --Misc Methods (Public)--
        public void addToXElement(XElement node)
        {
            form.addToXElement(node);
        }