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