Created
April 28, 2018 14:23
-
-
Save icebeam7/5f509a8328d19c91567835ac89eec2e1 to your computer and use it in GitHub Desktop.
FaceLoginApp: Usuario.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 System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
namespace FaceLoginApp.Modelos | |
{ | |
public class Usuario | |
{ | |
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | |
[Key] | |
public int Id { get; set; } | |
public string Key { get; set; } | |
public string Nombre { get; set; } | |
public string EmocionActual { get; set; } | |
public float ScoreActual { get; set; } | |
public string FotoActual { get; set; } | |
public string MensajeBienvenida | |
{ | |
get | |
{ | |
return $"Bienvenido {Nombre}, tu emoción actual es {EmocionActual} ({ScoreActual * 100} %)"; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment