Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created May 26, 2018 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebeam7/2638fedabb07dc364176ff56150979ba to your computer and use it in GitHub Desktop.
Save icebeam7/2638fedabb07dc364176ff56150979ba to your computer and use it in GitHub Desktop.
XamarinFaceBot: Mensaje.cs
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