1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

dep. history and favorites apis. backwards compat

This commit is contained in:
Kyle Spearrin
2017-04-12 14:42:19 -04:00
parent c6ef3dc283
commit 09048cf98f
10 changed files with 25 additions and 166 deletions

View File

@ -1,30 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Bit.Core.Models.Table;
namespace Bit.Core.Models.Api
{
[Obsolete]
public class CipherHistoryResponseModel : ResponseModel
{
public CipherHistoryResponseModel(IEnumerable<Cipher> revisedCiphers, IEnumerable<Guid> deletedIds, Guid userId)
public CipherHistoryResponseModel()
: base("cipherHistory")
{
if(revisedCiphers == null)
{
throw new ArgumentNullException(nameof(revisedCiphers));
}
{ }
if(deletedIds == null)
{
throw new ArgumentNullException(nameof(deletedIds));
}
//Revised = revisedCiphers.Select(c => new CipherResponseModel(c));
Deleted = deletedIds.Select(id => id.ToString());
}
public IEnumerable<CipherResponseModel> Revised { get; set; }
public IEnumerable<string> Deleted { get; set; }
public IEnumerable<CipherResponseModel> Revised { get; set; } = new List<CipherResponseModel>();
public IEnumerable<string> Deleted { get; set; } = new List<string>();
}
}