//--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\ #region --Set-, Get- Methods-- protected override PubSubPublishOptions getPublishOptions() { PubSubPublishOptions options = PubSubPublishOptions.getDefaultPublishOptions(); options.OPTIONS.fields.Add(new Field() { var = "pubsub#access_model", value = "open", type = FieldType.NONE }); return(options); }
//--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\ #region --Set-, Get- Methods-- #endregion //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\ #region --Misc Methods (Public)-- #endregion #region --Misc Methods (Private)-- protected override XElement getQuery() { XNamespace ns = Consts.XML_XEP_0357_NAMESPACE; XElement n = new XElement(ns + "enable"); n.Add(new XAttribute("jid", PUSH_SERVER_BARE_JID)); n.Add(new XAttribute("node", NODE)); PubSubPublishOptions options = PubSubPublishOptions.getDefaultPublishOptions(); options.OPTIONS.fields.Add(new Field() { var = "secret", value = SECRET }); options.OPTIONS.addToXElement(n); return(n); }
//--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\ #region --Set-, Get- Methods-- protected override PubSubPublishOptions getPublishOptions() { PubSubPublishOptions options = PubSubPublishOptions.getDefaultPublishOptions(); options.OPTIONS.fields.Add(new Field() { var = "pubsub#access_model", value = "open", type = FieldType.LIST_SINGLE }); /*options.OPTIONS.fields.Add(new Field() * { * var = "pubsub#max_items", * value = "max", * type = FieldType.NONE * });*/ return(options); }
//--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\ #region --Set-, Get- Methods-- protected override PubSubPublishOptions getPublishOptions() { PubSubPublishOptions options = PubSubPublishOptions.getDefaultPublishOptions(); options.OPTIONS.FIELDS.Add(new Field { var = "pubsub#persist_items", value = true, type = FieldType.BOOLEAN }); options.OPTIONS.FIELDS.Add(new Field { var = "pubsub#access_model", value = "whitelist", type = FieldType.LIST_SINGLE }); return(options); }