mirror of
https://github.com/bitwarden/mobile
synced 2025-12-16 08:13:20 +00:00
23 lines
569 B
C#
23 lines
569 B
C#
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; }
|
|
}
|
|
}
|