cipher renames

This commit is contained in:
Kyle Spearrin 2017-10-20 16:57:48 -04:00
parent 8970525861
commit 6ba396440f
4 changed files with 10 additions and 10 deletions

View File

@ -37,7 +37,7 @@ namespace Bit.iOS.Extension
public FormEntryTableViewCell PasswordCell { get; set; } = new FormEntryTableViewCell(AppResources.Password);
public UITableViewCell GeneratePasswordCell { get; set; } = new UITableViewCell(UITableViewCellStyle.Subtitle, "GeneratePasswordCell");
public SwitchTableViewCell FavoriteCell { get; set; } = new SwitchTableViewCell(AppResources.Favorite);
public FormEntryTableViewCell NotesCell { get; set; } = new FormEntryTableViewCell(useTextView: true, height: 90);
public FormEntryTableViewCell NotesCell { get; set; } = new FormEntryTableViewCell(useTextView: true, height: 180);
public PickerTableViewCell FolderCell { get; set; } = new PickerTableViewCell(AppResources.Folder);
public override void ViewWillAppear(bool animated)

View File

@ -102,7 +102,7 @@ namespace Bit.iOS.Extension
{
private const string CellIdentifier = "TableCell";
private IEnumerable<LoginViewModel> _tableItems = new List<LoginViewModel>();
private IEnumerable<CipherViewModel> _tableItems = new List<CipherViewModel>();
private Context _context;
private LoginListViewController _controller;
private ICipherService _cipherService;
@ -132,13 +132,13 @@ namespace Bit.iOS.Extension
combinedLogins.AddRange(logins.Item2);
}
_tableItems = combinedLogins.Select(s => new LoginViewModel(s))
_tableItems = combinedLogins.Select(s => new CipherViewModel(s))
.OrderBy(s => s.Name)
.ThenBy(s => s.Username)
.ToList() ?? new List<LoginViewModel>();
.ToList() ?? new List<CipherViewModel>();
}
public IEnumerable<LoginViewModel> TableItems { get; set; }
public IEnumerable<CipherViewModel> TableItems { get; set; }
public override nint RowsInSection(UITableView tableview, nint section)
{
@ -272,7 +272,7 @@ namespace Bit.iOS.Extension
}
}
private string GetTotp(LoginViewModel item)
private string GetTotp(CipherViewModel item)
{
string totp = null;
if(_isPremium)

View File

@ -5,9 +5,9 @@ using System.Linq;
namespace Bit.iOS.Extension.Models
{
public class LoginViewModel
public class CipherViewModel
{
public LoginViewModel(Cipher cipher)
public CipherViewModel(Cipher cipher)
{
Id = cipher.Id;
Name = cipher.Name?.Decrypt(cipher.OrganizationId);
@ -26,7 +26,7 @@ namespace Bit.iOS.Extension.Models
foreach(var field in cipher.Fields)
{
fields.Add(new Tuple<string, string>(
field.Name?.Decrypt(cipher.OrganizationId),
field.Name?.Decrypt(cipher.OrganizationId),
field.Value?.Decrypt(cipher.OrganizationId)));
}
return fields;

View File

@ -259,7 +259,7 @@
</None>
<None Include="Info.plist" />
<None Include="Entitlements.plist" />
<Compile Include="Models\LoginViewModel.cs" />
<Compile Include="Models\CipherViewModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<InterfaceDefinition Include="MainInterface.storyboard" />
<None Include="packages.config">