1
0
mirror of https://github.com/bitwarden/server synced 2025-12-17 08:43:27 +00:00
Files
server/src/Core/Models/Data/CipherData.cs
Kyle Spearrin 3563a85318 add support for multiple uris on login model.
refactor cipher data models.
2018-02-28 21:23:46 -05:00

23 lines
561 B
C#

using System.Collections.Generic;
using System.Linq;
using Bit.Core.Models.Api;
namespace Bit.Core.Models.Data
{
public abstract class CipherData
{
public CipherData() { }
public CipherData(CipherRequestModel cipher)
{
Name = cipher.Name;
Notes = cipher.Notes;
Fields = cipher.Fields.Select(f => new CipherFieldData(f));
}
public string Name { get; set; }
public string Notes { get; set; }
public IEnumerable<CipherFieldData> Fields { get; set; }
}
}