NewsModel.cs 867 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. 
  2. using GalaSoft.MvvmLight;
  3. namespace Muchinfo.MTPClient.Data.Model
  4. {
  5. public class NewsModel : ViewModelBase
  6. {
  7. private string _newId;
  8. /// <summary>
  9. /// ID
  10. /// </summary>
  11. public string NewID
  12. {
  13. get { return _newId; }
  14. set { Set(() => NewID, ref _newId, value); }
  15. }
  16. private string _title;
  17. /// <summary>
  18. /// 新闻标题
  19. /// </summary>
  20. public string Title
  21. {
  22. get { return _title; }
  23. set { Set(() => Title, ref _title, value); }
  24. }
  25. private string _newsUrl;
  26. /// <summary>
  27. /// 新闻内容的地址
  28. /// </summary>
  29. public string NewsUrl
  30. {
  31. get { return _newsUrl; }
  32. set { Set(() => NewsUrl, ref _newsUrl, value); }
  33. }
  34. }
  35. }