mirror of
https://github.com/bitwarden/mobile
synced 2025-12-18 09:13:15 +00:00
refactor for cipher model changes and multi-uris
This commit is contained in:
22
src/App/Models/Data/CipherData/CipherDataModel.cs
Normal file
22
src/App/Models/Data/CipherData/CipherDataModel.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Bit.App.Models.Api;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Bit.App.Models.Data
|
||||
{
|
||||
public abstract class CipherDataModel
|
||||
{
|
||||
public CipherDataModel() { }
|
||||
|
||||
public CipherDataModel(CipherResponse cipher)
|
||||
{
|
||||
Name = cipher.Name;
|
||||
Notes = cipher.Notes;
|
||||
Fields = cipher.Fields.Select(f => new FieldDataModel(f));
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public IEnumerable<FieldDataModel> Fields { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user