using System.ComponentModel;
namespace ElectronNET.API.Entities {
///
///
///
public class CookieDetails {
///
/// The URL to associate the cookie with. The callback will be rejected if the URL is invalid.
///
public string Url { get; set; }
///
/// (optional) - The name of the cookie. Empty by default if omitted.
///
[DefaultValue("")]
public string Name { get; set; }
///
/// (optional) - The value of the cookie. Empty by default if omitted.
///
[DefaultValue("")]
public string Value { get; set; }
///
/// (optional) - The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for subdomains. Empty by default if omitted.
///
[DefaultValue("")]
public string Domain { get; set; }
///
/// (optional) - The path of the cookie. Empty by default if omitted.
///
[DefaultValue("")]
public string Path { get; set; }
///
/// (optional) - Whether the cookie is marked as secure. Defaults to false.
///
[DefaultValue(false)]
public bool Secure { get; set; }
///
/// (optional) - Whether the cookie is marked as HTTP only. Defaults to false.
///
[DefaultValue(false)]
public bool HttpOnly { get; set; }
///
/// (optional) - The expiration date of the cookie as the number of seconds since the UNIX epoch.
/// If omitted then the cookie becomes a session cookie and will not be retained between sessions.
///
[DefaultValue(0)]
public long ExpirationDate { get; set; }
}
}