bitwarden-android/src/App/Models/Folder.cs
Kyle Spearrin 92e74274e0 wip
2016-05-03 02:08:50 -04:00

33 lines
745 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;
Name = data.Name != null ? new CipherString(data.Name) : null;
}
public Folder(FolderResponse response)
{
Id = response.Id;
Name = response.Name != null ? new CipherString(response.Name) : null;
}
public FolderRequest ToFolderRequest()
{
return new FolderRequest(this);
}
public FolderData ToFolderData(string userId)
{
return new FolderData(this, userId);
}
}
}