using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace ElectronNET.API.Entities { /// /// /// public class RemovePassword { /// /// When provided, the authentication info related to the origin will only be /// removed otherwise the entire cache will be cleared. /// public string Origin { get; set; } /// /// Credentials of the authentication. Must be provided if removing by origin. /// public string Password { get; set; } /// /// Realm of the authentication. Must be provided if removing by origin. /// public string Realm { get; set; } /// /// Scheme of the authentication. Can be basic, digest, ntlm, negotiate. /// Must be provided if removing by origin. /// [JsonConverter(typeof(StringEnumConverter))] public Scheme Scheme { get; set; } /// /// password. /// public string Type { get; set; } /// /// Credentials of the authentication. Must be provided if removing by origin. /// public string Username { get; set; } /// /// /// /// password. public RemovePassword(string type) { Type = type; } } }