mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 16:53:26 +00:00
collection and folder models
This commit is contained in:
@@ -1,10 +1,23 @@
|
||||
using System;
|
||||
using Bit.Core.Models.Domain;
|
||||
|
||||
namespace Bit.Core.Models.View
|
||||
{
|
||||
public class CollectionView
|
||||
public class CollectionView : View
|
||||
{
|
||||
public Guid OrganizationId { get; set; }
|
||||
public CollectionView() { }
|
||||
|
||||
public CollectionView(Collection c)
|
||||
{
|
||||
Id = c.Id;
|
||||
OrganizationId = c.OrganizationId;
|
||||
ReadOnly = c.ReadOnly;
|
||||
ExternalId = c.ExternalId;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public string OrganizationId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string ExternalId { get; set; }
|
||||
public bool ReadOnly { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Bit.Core.Models.Domain;
|
||||
using System;
|
||||
|
||||
namespace Bit.Core.Models.View
|
||||
{
|
||||
public class FolderView
|
||||
public class FolderView : View
|
||||
{
|
||||
public FolderView() { }
|
||||
|
||||
public FolderView(Folder f)
|
||||
{
|
||||
Id = f.Id;
|
||||
RevisionDate = f.RevisionDate;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public DateTime RevisionDate { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user