2021-03-31 16:19:05 +02:00
|
|
|
|
using System;
|
|
|
|
|
using Bit.Core.Enums;
|
2019-05-17 18:03:35 +02:00
|
|
|
|
|
|
|
|
|
namespace Bit.App.Models
|
|
|
|
|
{
|
|
|
|
|
public class AppOptions
|
|
|
|
|
{
|
|
|
|
|
public bool MyVaultTile { get; set; }
|
2019-06-05 22:37:54 +02:00
|
|
|
|
public bool GeneratorTile { get; set; }
|
2019-05-17 18:03:35 +02:00
|
|
|
|
public bool FromAutofillFramework { get; set; }
|
|
|
|
|
public CipherType? FillType { get; set; }
|
|
|
|
|
public string Uri { get; set; }
|
|
|
|
|
public CipherType? SaveType { get; set; }
|
|
|
|
|
public string SaveName { get; set; }
|
|
|
|
|
public string SaveUsername { get; set; }
|
|
|
|
|
public string SavePassword { get; set; }
|
|
|
|
|
public string SaveCardName { get; set; }
|
|
|
|
|
public string SaveCardNumber { get; set; }
|
|
|
|
|
public string SaveCardExpMonth { get; set; }
|
|
|
|
|
public string SaveCardExpYear { get; set; }
|
|
|
|
|
public string SaveCardCode { get; set; }
|
2020-05-29 21:25:06 +02:00
|
|
|
|
public bool IosExtension { get; set; }
|
2021-03-31 16:19:05 +02:00
|
|
|
|
public Tuple<SendType, string, byte[], string> CreateSend { get; set; }
|
2022-01-25 21:41:56 +01:00
|
|
|
|
public bool CopyInsteadOfShareAfterSaving { get; set; }
|
2022-02-23 18:40:17 +01:00
|
|
|
|
public bool HideAccountSwitcher { get; set; }
|
2020-09-03 18:30:40 +02:00
|
|
|
|
|
|
|
|
|
public void SetAllFrom(AppOptions o)
|
|
|
|
|
{
|
|
|
|
|
if (o == null)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
MyVaultTile = o.MyVaultTile;
|
|
|
|
|
GeneratorTile = o.GeneratorTile;
|
|
|
|
|
FromAutofillFramework = o.FromAutofillFramework;
|
|
|
|
|
FillType = o.FillType;
|
|
|
|
|
Uri = o.Uri;
|
|
|
|
|
SaveType = o.SaveType;
|
|
|
|
|
SaveName = o.SaveName;
|
|
|
|
|
SaveUsername = o.SaveUsername;
|
|
|
|
|
SavePassword = o.SavePassword;
|
|
|
|
|
SaveCardName = o.SaveCardName;
|
|
|
|
|
SaveCardNumber = o.SaveCardNumber;
|
|
|
|
|
SaveCardExpMonth = o.SaveCardExpMonth;
|
|
|
|
|
SaveCardExpYear = o.SaveCardExpYear;
|
|
|
|
|
SaveCardCode = o.SaveCardCode;
|
|
|
|
|
IosExtension = o.IosExtension;
|
2021-03-31 16:19:05 +02:00
|
|
|
|
CreateSend = o.CreateSend;
|
2022-01-25 21:41:56 +01:00
|
|
|
|
CopyInsteadOfShareAfterSaving = o.CopyInsteadOfShareAfterSaving;
|
2022-02-23 18:40:17 +01:00
|
|
|
|
HideAccountSwitcher = o.HideAccountSwitcher;
|
2020-09-03 18:30:40 +02:00
|
|
|
|
}
|
2019-05-17 18:03:35 +02:00
|
|
|
|
}
|
|
|
|
|
}
|