You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
610 B

using System;
namespace WebApp.Outlook.Models
{
public class Messages
{
public string Subject { get; set; }
public DateTimeOffset DateTimeReceived { get; set; }
public string From { get; set; }
public Messages(string subject, DateTimeOffset? dateTimeReceived,
Microsoft.Office365.OutlookServices.Recipient from)
{
this.Subject = subject;
this.DateTimeReceived = (DateTimeOffset)dateTimeReceived;
this.From = from != null ? $"{from.EmailAddress.Name} ({from.EmailAddress.Address})" : "EMPTY";
}
}
}