mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 15:45:42 +03:00
30 lines
656 B
C#
30 lines
656 B
C#
|
using Bit.App.Models.Data;
|
|||
|
using Bit.App.Models.Api;
|
|||
|
|
|||
|
namespace Bit.App.Models
|
|||
|
{
|
|||
|
public class Folder : Cipher
|
|||
|
{
|
|||
|
public Folder()
|
|||
|
{ }
|
|||
|
|
|||
|
public Folder(FolderData data)
|
|||
|
{
|
|||
|
Id = data.Id;
|
|||
|
ServerId = data.ServerId;
|
|||
|
Name = data.Name != null ? new CipherString(data.Name) : null;
|
|||
|
}
|
|||
|
|
|||
|
public Folder(FolderResponse response)
|
|||
|
{
|
|||
|
ServerId = response.Id;
|
|||
|
Name = response.Name != null ? new CipherString(response.Name) : null;
|
|||
|
}
|
|||
|
|
|||
|
public FolderData ToFolderData()
|
|||
|
{
|
|||
|
return new FolderData(this);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|