namespace ElectronNET.API.Entities
{
///
/// Cookie structure as used by Electron session.cookies APIs.
///
/// Up-to-date with Electron API 39.2
public class Cookie
{
///
/// Gets or sets the name of the cookie.
///
public string Name { get; set; }
///
/// Gets or sets the value of the cookie.
///
public string Value { get; set; }
///
/// Gets or sets the domain of the cookie; this will be normalized with a preceding dot so that it's also valid for subdomains.
///
public string Domain { get; set; }
///
/// Gets or sets a value indicating whether the cookie is a host-only cookie; this will only be true if no domain was passed.
///
public bool? HostOnly { get; set; }
///
/// Gets or sets the path of the cookie.
///
public string Path { get; set; }
///
/// Gets or sets a value indicating whether the cookie is marked as secure.
///
public bool? Secure { get; set; }
///
/// Gets or sets a value indicating whether the cookie is marked as HTTP only.
///
public bool? HttpOnly { get; set; }
///
/// Gets or sets a value indicating whether the cookie is a session cookie or a persistent cookie with an expiration date.
///
public bool? Session { get; set; }
///
/// Gets or sets the expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies.
///
public double? ExpirationDate { get; set; }
///
/// Gets or sets the SameSite policy applied to this cookie. Can be "unspecified", "no_restriction", "lax" or "strict".
///
public string SameSite { get; set; }
}
}