public void CommonSetCoreItemPropertiesUsingObjects(RssItem itm) { itm.title = "Item One Title"; itm.description = "Item ONe Description Is a dandy"; itm.link = "http://something.com/item1"; itm.pubDate = DateTime.Now; itm.author = "*****@*****.**"; RssItemCategory ctg = new RssItemCategory(); ctg.category = "ITEM_CTG1"; itm.categories.Add(ctg); ctg = new RssItemCategory(); ctg.category = "ITEM_CTG2"; ctg.domain = "something.com"; itm.categories.Add(ctg); RssItemEnclosure enc = new RssItemEnclosure(); enc.url = "http://something.com/crazy.mp4"; enc.length = 0; enc.type = "video/mp4"; itm.AddEnclosure(enc); RssItemGuid guid = new RssItemGuid(); guid.guid = "http://something.com/item1"; guid.isPermalink = true; itm.guid = guid; itm.comments = "http://something.com/item1/comments"; RssItemSource src = new RssItemSource(); src.source = "Blabbermouth Inc."; src.url = "http://blabbermouth.com/item1"; itm.source = src; }
// ------------------------------------------------------------------------------- // ------------------------------------------------------------------------------- /// <summary> /// Adds an enclosure to the item /// </summary> /// <param name="obj"></param> // ------------------------------------------------------------------------------- // ------------------------------------------------------------------------------- public void AddEnclosure(RssItemEnclosure obj) { base.AddEnclosure(obj); }