mirror of
https://github.com/bitwarden/mobile
synced 2025-12-28 14:13:25 +00:00
account apis
This commit is contained in:
8
src/Core/Models/Request/KeysRequest.cs
Normal file
8
src/Core/Models/Request/KeysRequest.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Bit.Core.Models.Request
|
||||
{
|
||||
public class KeysRequest
|
||||
{
|
||||
public string PublicKey { get; set; }
|
||||
public string EncryptedPrivateKey { get; set; }
|
||||
}
|
||||
}
|
||||
7
src/Core/Models/Request/PasswordHintRequest.cs
Normal file
7
src/Core/Models/Request/PasswordHintRequest.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Bit.Core.Models.Request
|
||||
{
|
||||
public class PasswordHintRequest
|
||||
{
|
||||
public string Email { get; set; }
|
||||
}
|
||||
}
|
||||
7
src/Core/Models/Request/PreloginRequest.cs
Normal file
7
src/Core/Models/Request/PreloginRequest.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Bit.Core.Models.Request
|
||||
{
|
||||
public class PreloginRequest
|
||||
{
|
||||
public string Email { get; set; }
|
||||
}
|
||||
}
|
||||
19
src/Core/Models/Request/RegisterRequest.cs
Normal file
19
src/Core/Models/Request/RegisterRequest.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
10
src/Core/Models/Response/PreloginResponse.cs
Normal file
10
src/Core/Models/Response/PreloginResponse.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
20
src/Core/Models/Response/ProfileResponse.cs
Normal file
20
src/Core/Models/Response/ProfileResponse.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user