Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
151 lines (128 sloc) 4.43 KB
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="List.cs" company="Brandon Seydel">
// N/A
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using MailChimp.Net.Core;
namespace MailChimp.Net.Models
{
/// <summary>
/// The list.
/// </summary>
public class List
{
/// <summary>
/// Initializes a new instance of the <see cref="List"/> class.
/// </summary>
public List()
{
Links = new HashSet<Link>();
Visibility = Visibility.Private;
}
/// <summary>
/// Gets or sets the beamer address.
/// </summary>
[JsonProperty("beamer_address")]
public string BeamerAddress { get; set; }
/// <summary>
/// Gets or sets the campaign defaults.
/// </summary>
[JsonProperty("campaign_defaults")]
public CampaignDefaults CampaignDefaults { get; set; }
/// <summary>
/// Gets or sets the contact.
/// </summary>
[JsonProperty("contact")]
public Contact Contact { get; set; }
/// <summary>
/// Gets or sets the date created.
/// </summary>
[JsonProperty("date_created")]
public DateTime DateCreated { get; set; }
/// <summary>
/// Gets or sets a value indicating whether email type option.
/// </summary>
[JsonProperty("email_type_option")]
public bool EmailTypeOption { get; set; }
/// <summary>
/// Gets or sets the id.
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }
/// <summary>
/// Gets or sets the web id.
/// </summary>
[JsonProperty("web_id")]
public int WebId { get; set; }
/// <summary>
/// Gets or sets the links.
/// </summary>
[JsonProperty("_links")]
public IEnumerable<Link> Links { get; set; }
/// <summary>
/// Gets or sets the list rating.
/// </summary>
[JsonProperty("list_rating")]
public int ListRating { get; set; }
/// <summary>
/// Gets or sets the modules.
/// </summary>
[JsonProperty("modules")]
public object[] Modules { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
[JsonProperty("name")]
public string Name { get; set; }
/// <summary>
/// Gets or sets the notify on subscribe.
/// </summary>
[JsonProperty("notify_on_subscribe")]
public string NotifyOnSubscribe { get; set; }
/// <summary>
/// Gets or sets the notify on unsubscribe.
/// </summary>
[JsonProperty("notify_on_unsubscribe")]
public string NotifyOnUnsubscribe { get; set; }
/// <summary>
/// Gets or sets the permission reminder.
/// </summary>
[JsonProperty("permission_reminder")]
public string PermissionReminder { get; set; }
/// <summary>
/// Gets or sets the stats.
/// </summary>
[JsonProperty("stats")]
public Stats Stats { get; set; }
/// <summary>
/// Gets or sets the subscribe url long.
/// </summary>
[JsonProperty("subscribe_url_long")]
public string SubscribeUrlLong { get; set; }
/// <summary>
/// Gets or sets the subscribe url short.
/// </summary>
[JsonProperty("subscribe_url_short")]
public string SubscribeUrlShort { get; set; }
/// <summary>
/// Gets or sets a value indicating whether use archive bar.
/// </summary>
[JsonProperty("use_archive_bar")]
public bool UseArchiveBar { get; set; }
/// <summary>
/// Gets or sets a value indicating whether or not the list
/// has marketing permissions (eg. GDPR) enabled.
/// </summary>
[JsonProperty("marketing_permissions")]
public bool MarketingPermissions { get; set; }
/// <summary>
/// Gets or sets the visibility.
/// </summary>
[JsonProperty("visibility")]
[JsonConverter(typeof(StringEnumDescriptionConverter))]
public Visibility Visibility { get; set; }
}
}