// ------------------------------------------------------------------------------- // ------------------------------------------------------------------------------- /// <summary> /// Adds a RssCoreChannelCloud object to the channel /// </summary> /// <param name="cloud_domain">domain</param> /// <param name="cloud_port">port</param> /// <param name="cloud_path">path</param> /// <param name="cloud_registerprocedure">procedure name</param> /// <param name="cloud_protocol">protocol</param> // ------------------------------------------------------------------------------- // ------------------------------------------------------------------------------- public void AddCloud(string cloud_domain, int cloud_port, string cloud_path, string cloud_registerprocedure, string cloud_protocol) { RssCoreChannelCloud c = new RssCoreChannelCloud(); c.domain = cloud_domain; c.port = cloud_port; c.path = cloud_path; c.registerProcedure = cloud_registerprocedure; c.protocol = cloud_protocol; AddCloud(c); }
// ------------------------------------------------------------------------------- // ------------------------------------------------------------------------------- /// <summary> /// Adds a cloud object to the channel /// </summary> /// <param name="obj">RssCoreChannelCloud</param> // ------------------------------------------------------------------------------- // ------------------------------------------------------------------------------- public void AddCloud(RssCoreChannelCloud obj) { cloud.Add(obj); }
// ------------------------------------------------------------------------------- // ------------------------------------------------------------------------------- /// <summary> /// Sets the property based upon the tag name of the provided XElement /// </summary> /// <param name="el">XElement</param> // ------------------------------------------------------------------------------- // ------------------------------------------------------------------------------- public void LoadEl(XElement el) { RssRfc822DateTimeConverter dtConvert = new RssRfc822DateTimeConverter(); if (el.Name.Namespace == XNamespace.None) { switch (el.Name.LocalName) { case TAG_TITLE: title = xUtil.GetStr(el); break; case TAG_LINK: link = xUtil.GetStr(el); break; case TAG_DESCRIPTION: description = xUtil.GetStr(el); break; case TAG_LANGUAGE: language = xUtil.GetStr(el); break; case TAG_COPYRIGHT: copyright = xUtil.GetStr(el); break; case TAG_MANAGINGEDITOR: managingEditor = xUtil.GetStr(el); break; case TAG_WEBMASTER: webMaster = xUtil.GetStr(el); break; case TAG_PUBDATE: pubDate = dtConvert.ParseRfc822(xUtil.GetStr(el)); break; case TAG_LASTBUILDDATE: lastBuildDate = dtConvert.ParseRfc822(xUtil.GetStr(el)); break; case TAG_CATEGORY: RssCoreChannelCategory ctg = new RssCoreChannelCategory(); ctg.Load(el); categories.Add(ctg); break; case TAG_GENERATOR: generator = xUtil.GetStr(el); break; case TAG_DOCS: docs = xUtil.GetStr(el); break; case TAG_CLOUD: RssCoreChannelCloud c = new RssCoreChannelCloud(); c.Load(el); cloud.Add(c); break; case TAG_TTL: ttl = xUtil.GetInt(el); break; case TAG_IMAGE: image = new RssCoreChannelImage(); image.Load(el); break; case TAG_TEXTINPUT: textInput = new RssCoreChannelTextInput(); textInput.Load(el); break; case TAG_SKIPHOURS: skipHours = new RssCoreChannelSkipHours(); skipHours.Load(el); break; case TAG_SKIPDAYS: skipDays = new RssCoreChannelSkipDays(); skipDays.Load(el); break; } // end switch } // end if namespace }