mirror of
https://github.com/bitwarden/mobile
synced 2025-12-16 08:13:20 +00:00
add collection syncing
This commit is contained in:
29
src/App/Models/Collection.cs
Normal file
29
src/App/Models/Collection.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Bit.App.Models.Data;
|
||||
using Bit.App.Models.Api;
|
||||
|
||||
namespace Bit.App.Models
|
||||
{
|
||||
public class Collection
|
||||
{
|
||||
public Collection()
|
||||
{ }
|
||||
|
||||
public Collection(CollectionData data)
|
||||
{
|
||||
Id = data.Id;
|
||||
OrganizationId = data.OrganizationId;
|
||||
Name = data.Name != null ? new CipherString(data.Name) : null;
|
||||
}
|
||||
|
||||
public Collection(CollectionResponse response)
|
||||
{
|
||||
Id = response.Id;
|
||||
OrganizationId = response.OrganizationId;
|
||||
Name = response.Name != null ? new CipherString(response.Name) : null;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public string OrganizationId { get; set; }
|
||||
public CipherString Name { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user