using System; using System.Collections.Generic; using System.Text; namespace Swarmops.Basic.Types { public class BasicNewsletterFeed { public BasicNewsletterFeed (int newsletterId, int organizationId, bool defaultSubscribed, string name) { this.NewsletterFeedId = newsletterId; this.OrganizationId = organizationId; this.DefaultSubscribed = defaultSubscribed; this.Name = name; } public BasicNewsletterFeed() { Name = string.Empty; } public BasicNewsletterFeed (BasicNewsletterFeed original) : this(original.NewsletterFeedId, original.OrganizationId, original.DefaultSubscribed, original.Name) { } /// /// The database identity of the newsletter feed. /// public readonly int NewsletterFeedId; /// /// The identity of the organization that owns this newsletter. /// public readonly int OrganizationId; /// /// If true, a new member in the owning organization will get this newsletter. /// public readonly bool DefaultSubscribed; /// /// A friendly name for the newsletter. /// public readonly string Name; } }