using System;
using System.Diagnostics.CodeAnalysis;
namespace gehGassi.Pwned.Models
{
///
/// Past for an Email Account.
///
[ExcludeFromCodeCoverage]
public class PastAccount
{
///
/// The paste service the record was retrieved from.
/// Current values are: Pastebin, Pastie, Slexy, Ghostbin, QuickLeak, JustPaste, AdHocUrl, OptOut
///
public string Source { get; set; }
///
/// The ID of the paste as it was given at the source service.
/// Combined with the "Source" attribute, this can be used to resolve the URL of the paste.
///
public string Id { get; set; }
///
/// The title of the paste as observed on the source site.
/// This may be null and if so will be omitted from the response.
///
public object Title { get; set; }
///
/// The date and time (precision to the second) that the paste was posted.
/// This is taken directly from the paste site when this information is available but may be null if no date is published.
///
public DateTime? Date { get; set; }
///
/// The number of emails that were found when processing the paste.
/// Emails are extracted by using the regular expression \b+(?!^.{256})[a-zA-Z0-9\.\-_\+]+@[a-zA-Z0-9\.\-_]+\.[a-zA-Z]+\b
///
public int EmailCount { get; set; }
}
}