Created
May 26, 2018 15:21
-
-
Save icebeam7/2638fedabb07dc364176ff56150979ba to your computer and use it in GitHub Desktop.
XamarinFaceBot: Mensaje.cs
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 Xamarin.Forms; | |
using XamarinFaceBot.Helpers; | |
namespace XamarinFaceBot.Modelos | |
{ | |
public class Mensaje | |
{ | |
public string Texto { get; set; } | |
public string Emisor { get; set; } | |
public TextAlignment LblMensajeTextAlignment { get; set; } | |
public TextAlignment LblEmisorTextAlignment { get; set; } | |
public Mensaje(string texto, string emisor) | |
{ | |
Texto = texto; | |
Emisor = emisor; | |
if (emisor.ToUpper() == Constantes.BotUser) | |
{ | |
LblMensajeTextAlignment = TextAlignment.End; | |
LblEmisorTextAlignment = TextAlignment.End; | |
} | |
else | |
{ | |
LblMensajeTextAlignment = TextAlignment.Start; | |
LblEmisorTextAlignment = TextAlignment.Start; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment