Created
December 14, 2017 15:36
-
-
Save juucustodio/b3bf4b7e04a52bfdd1ee59cbbb5bbb75 to your computer and use it in GitHub Desktop.
Example of Chat in Xamarin.Forms applications - http://julianocustodio.com/chat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using MvvmHelpers; | |
namespace DemoChat.Models | |
{ | |
public class Message : ObservableObject | |
{ | |
public string Text | |
{ | |
get { return _text; } | |
set { SetProperty(ref _text, value); } | |
} | |
string _text; | |
public DateTime MessageDateTime | |
{ | |
get { return _messageDateTime; } | |
set { SetProperty(ref _messageDateTime, value); } | |
} | |
DateTime _messageDateTime; | |
public string TimeDisplay => MessageDateTime.ToLocalTime().ToString(); | |
public bool IsTextIn | |
{ | |
get { return _isTextIn; } | |
set { SetProperty(ref _isTextIn, value); } | |
} | |
bool _isTextIn; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment