RSSItem.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Copyright © 2011-2012 Nokia Corporation. All rights reserved.
  3. * Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
  4. * Other product and company names mentioned herein may be trademarks
  5. * or trade names of their respective owners.
  6. * See LICENSE.TXT for license information.
  7. */
  8. using System;
  9. using System.Runtime.Serialization;
  10. namespace RSSReader.Model
  11. {
  12. /// <summary>
  13. /// Model for RSS item
  14. /// </summary>
  15. [DataContract(IsReference = true)]
  16. public class RSSItem
  17. {
  18. /// <summary>
  19. /// Property for item title
  20. /// </summary>
  21. [DataMember]
  22. public String Title { get; set; }
  23. /// <summary>
  24. /// Property for item summary
  25. /// </summary>
  26. [DataMember]
  27. public String Text { get; set; }
  28. /// <summary>
  29. /// Property for item URL
  30. /// </summary>
  31. [DataMember]
  32. public String Url { get; set; }
  33. /// <summary>
  34. /// Property for item datestamp
  35. /// </summary>
  36. [DataMember]
  37. public DateTimeOffset Datestamp { get; set; }
  38. /// <summary>
  39. /// Property for item feed information
  40. /// </summary>
  41. [DataMember]
  42. public RSSFeed Feed { get; set; }
  43. /// <summary>
  44. /// Image associated with the item
  45. /// </summary>
  46. /// [DataMember]
  47. public string Image;
  48. /// <summary>
  49. /// Constructor
  50. /// </summary>
  51. /// <param name="title">Title of the item</param>
  52. /// <param name="text">Summary of the item</param>
  53. /// <param name="url">URL of the item</param>
  54. /// <param name="date">Datestamp of the item</param>
  55. /// <param name="feed">Feed information</param>
  56. /// <param name="image">Image associated with the item</param>
  57. public RSSItem(String title, String text, String url, DateTimeOffset date, RSSFeed feed, string image)
  58. {
  59. Title = title;
  60. Text = text;
  61. Url = url;
  62. Datestamp = date;
  63. Feed = feed;
  64. Image = image;
  65. }
  66. }
  67. }