Skip to content

Instantly share code, notes, and snippets.

@icebeam7 icebeam7/Mensaje.cs
Created May 26, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.