mirror of
https://github.com/bitwarden/mobile
synced 2025-12-26 05:03:39 +00:00
api models
This commit is contained in:
18
src/Core/Models/Request/CipherCreateRequest.cs
Normal file
18
src/Core/Models/Request/CipherCreateRequest.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Bit.Core.Models.Domain;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Bit.Core.Models.Request
|
||||
{
|
||||
public class CipherCreateRequest
|
||||
{
|
||||
public CipherCreateRequest(Cipher cipher)
|
||||
{
|
||||
Cipher = new CipherRequest(cipher);
|
||||
CollectionIds = cipher.CollectionIds?.ToList();
|
||||
}
|
||||
|
||||
public CipherRequest Cipher { get; set; }
|
||||
public List<string> CollectionIds { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user