Guest User

Untitled

a guest
Dec 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. using System;
  2. using MvvmHelpers;
  3.  
  4. namespace DemoChat.Models
  5. {
  6. public class Message : ObservableObject
  7. {
  8. public string Text
  9. {
  10. get { return _text; }
  11. set { SetProperty(ref _text, value); }
  12. }
  13. string _text;
  14.  
  15. public DateTime MessageDateTime
  16. {
  17. get { return _messageDateTime; }
  18. set { SetProperty(ref _messageDateTime, value); }
  19. }
  20.  
  21. DateTime _messageDateTime;
  22.  
  23. public string TimeDisplay => MessageDateTime.ToLocalTime().ToString();
  24.  
  25. public bool IsTextIn
  26. {
  27. get { return _isTextIn; }
  28. set { SetProperty(ref _isTextIn, value); }
  29. }
  30. bool _isTextIn;
  31. }
  32. }
Add Comment
Please, Sign In to add comment