Exemplo n.º 1
0
 public Messages(UserBaseContract user, int?selectedMessageId, string receiverName, UserInboxType inbox)
 {
     User              = user;
     ReceiverName      = receiverName ?? string.Empty;
     SelectedMessageId = selectedMessageId;
     Inbox             = inbox;
 }
Exemplo n.º 2
0
 public static HtmlString ProfileIcon(this HtmlHelper htmlHelper, UserBaseContract user, int size = 80)
 {
     if (user != null && !string.IsNullOrEmpty(user.Email))
     {
         return(Gravatar.GetHtml(user.Email, size));
     }
     else
     {
         return(new HtmlString(string.Empty));
     }
 }
Exemplo n.º 3
0
 public Messages(UserBaseContract user, int?selectedMessageId, string receiverName)
 {
     User              = user;
     ReceiverName      = receiverName ?? string.Empty;
     SelectedMessageId = selectedMessageId;
 }