1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 20:53:16 +00:00

create/get/update collection with groups

This commit is contained in:
Kyle Spearrin
2017-05-09 12:41:36 -04:00
parent d166f9cca3
commit 6c923102e9
11 changed files with 196 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
using System;
using Bit.Core.Models.Table;
using Bit.Core.Models.Data;
using System.Collections.Generic;
namespace Bit.Core.Models.Api
{
@@ -37,6 +38,17 @@ namespace Bit.Core.Models.Api
public string Name { get; set; }
}
public class CollectionDetailsResponseModel : CollectionResponseModel
{
public CollectionDetailsResponseModel(Collection collection, IEnumerable<Guid> collectionIds)
: base(collection, "collectionDetails")
{
CollectionIds = collectionIds;
}
public IEnumerable<Guid> CollectionIds { get; set; }
}
public class CollectionUserDetailsResponseModel : CollectionResponseModel
{
public CollectionUserDetailsResponseModel(CollectionUserCollectionDetails collection)