using Bit.Core.Enums; using Bit.Core.Models.Data; using Bit.Core.Models.View; using System.Collections.Generic; using System.Threading.Tasks; namespace Bit.Core.Models.Domain { public class LoginUri : Domain { public LoginUri() { } public LoginUri(LoginUriData obj, bool alreadyEncrypted = false) { Match = obj.Match; BuildDomainModel(this, obj, new HashSet { "Uri" }, alreadyEncrypted); } public CipherString Uri { get; set; } public UriMatchType? Match { get; set; } public Task DecryptAsync(string orgId) { return DecryptObjAsync(new LoginUriView(this), this, new HashSet { "Uri" }, orgId); } public LoginUriData ToLoginUriData() { var u = new LoginUriData(); BuildDataModel(this, u, new HashSet { "Uri" }, new HashSet { "Match" }); return u; } } }