6 changed files with 109 additions and 1 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Bit.Core.Enums |
||||
{ |
||||
public enum OrganizationUserStatusType : byte |
||||
{ |
||||
Invited = 0, |
||||
Accepted = 1, |
||||
Confirmed = 2 |
||||
} |
||||
} |
||||
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Bit.Core.Enums |
||||
{ |
||||
public enum OrganizationUserType : byte |
||||
{ |
||||
Owner = 0, |
||||
Admin = 1, |
||||
User = 2 |
||||
} |
||||
} |
||||
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
using Bit.Core.Enums; |
||||
using Newtonsoft.Json; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Bit.Core.Models |
||||
{ |
||||
public class ProfileOrganizationResponseModel |
||||
{ |
||||
public string Id { get; set; } |
||||
public string Name { get; set; } |
||||
public string Key { get; set; } |
||||
public OrganizationUserStatusType Status { get; set; } |
||||
public OrganizationUserType Type { get; set; } |
||||
public bool Enabled { get; set; } |
||||
} |
||||
} |
||||
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
using Newtonsoft.Json; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Bit.Core.Models |
||||
{ |
||||
public class ProfileResponse |
||||
{ |
||||
public string Id { get; set; } |
||||
public string Name { get; set; } |
||||
public string Email { get; set; } |
||||
public string MasterPasswordHint { get; set; } |
||||
public string Culture { get; set; } |
||||
public bool TwoFactorEnabled { get; set; } |
||||
public IEnumerable<ProfileOrganizationResponseModel> Organizations { get; set; } |
||||
} |
||||
} |
||||
Loading…
Reference in new issue