2025-11-09 03:50:24 +01:00
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
{
|
2025-11-22 02:16:10 +01:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
2020-05-22 16:38:34 +02:00
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
/// The cause of the cookie change (per Electron Cookies 'changed' event).
|
2020-05-22 16:38:34 +02:00
|
|
|
/// </summary>
|
2025-11-09 03:50:24 +01:00
|
|
|
public enum CookieChangedCause
|
2020-05-22 16:38:34 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
/// The cookie was changed directly by a consumer's action.
|
2020-05-22 16:38:34 +02:00
|
|
|
/// </summary>
|
|
|
|
|
@explicit,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The cookie was automatically removed due to an insert operation that overwrote it.
|
|
|
|
|
/// </summary>
|
|
|
|
|
overwrite,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
/// The cookie was automatically removed as it expired.
|
2020-05-22 16:38:34 +02:00
|
|
|
/// </summary>
|
|
|
|
|
expired,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
/// The cookie was automatically evicted during garbage collection.
|
2020-05-22 16:38:34 +02:00
|
|
|
/// </summary>
|
|
|
|
|
evicted,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
/// The cookie was overwritten with an already-expired expiration date.
|
2020-05-22 16:38:34 +02:00
|
|
|
/// </summary>
|
2025-11-09 12:05:07 +01:00
|
|
|
[JsonPropertyName("expired_overwrite")]
|
2020-05-22 16:38:34 +02:00
|
|
|
expiredOverwrite
|
|
|
|
|
}
|
2025-11-15 08:05:31 +01:00
|
|
|
}
|