Skip to content

Instantly share code, notes, and snippets.

@jonnii
Created November 26, 2012 23:42
Show Gist options
  • Save jonnii/4151403 to your computer and use it in GitHub Desktop.
Save jonnii/4151403 to your computer and use it in GitHub Desktop.
public class Application : IIdentifiable
{
public ObjectId Id { get; set; }
public string Name { get; set; }
public string Environment { get; set; }
public long TotalMessages { get; set; }
public string EmailForNotifications { get; set; }
public DateTime? LastMessage { get; set; }
[BsonIgnore]
public bool ShouldSendEmails
{
get { return !string.IsNullOrWhiteSpace(EmailForNotifications); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment