1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-28 14:13:25 +00:00

account apis

This commit is contained in:
Kyle Spearrin
2019-04-10 15:35:23 -04:00
parent 567161d8f3
commit 115fa349d2
8 changed files with 111 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
namespace Bit.Core.Models.Request
{
public class KeysRequest
{
public string PublicKey { get; set; }
public string EncryptedPrivateKey { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace Bit.Core.Models.Request
{
public class PasswordHintRequest
{
public string Email { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace Bit.Core.Models.Request
{
public class PreloginRequest
{
public string Email { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System;
using Bit.Core.Enums;
namespace Bit.Core.Models.Request
{
public class RegisterRequest
{
public string Name { get; set; }
public string Email { get; set; }
public string MasterPasswordHash { get; set; }
public string MasterPasswordHint { get; set; }
public string Key { get; set; }
public KeysRequest Keys { get; set; }
public string Token { get; set; }
public Guid? OrganizationUserId { get; set; }
public KdfType? Kdf { get; set; }
public int? KdfIterations { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
using Bit.Core.Enums;
namespace Bit.Core.Models.Response
{
public class PreloginResponse
{
public KdfType Kdf { get; set; }
public int KdfIterations { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
using System.Collections.Generic;
namespace Bit.Core.Models.Response
{
public class ProfileResponse
{
public string Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public bool EmailVerified { get; set; }
public bool Premium { get; set; }
public string MasterPasswordHint { get; set; }
public string Culture { get; set; }
public bool TwoFactorEnabled { get; set; }
public string Key { get; set; }
public string PrivateKey { get; set; }
public string SecurityStamp { get; set; }
public List<ProfileOrganizationResponse> Organizations { get; set; }
}
}