1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-17 00:33:20 +00:00

change login to cipher apis

This commit is contained in:
Kyle Spearrin
2017-09-20 17:37:09 -04:00
parent 15f074a45b
commit e8486abccf
14 changed files with 17 additions and 201 deletions

View File

@@ -0,0 +1,32 @@
using Bit.App.Enums;
namespace Bit.App.Models.Api
{
public class CipherRequest
{
public CipherRequest(Login login)
{
Type = CipherType.Login;
OrganizationId = login.OrganizationId;
FolderId = login.FolderId;
Name = login.Name?.EncryptedString;
Uri = login.Uri?.EncryptedString;
Username = login.Username?.EncryptedString;
Password = login.Password?.EncryptedString;
Notes = login.Notes?.EncryptedString;
Totp = login.Totp?.EncryptedString;
Favorite = login.Favorite;
}
public CipherType Type { get; set; }
public string OrganizationId { get; set; }
public string FolderId { get; set; }
public string Name { get; set; }
public string Uri { get; set; }
public string Username { get; set; }
public string Password { get; set; }
public string Notes { get; set; }
public string Totp { get; set; }
public bool Favorite { get; set; }
}
}