mirror of
https://github.com/bitwarden/mobile
synced 2025-12-22 03:03:46 +00:00
user service
This commit is contained in:
45
src/Core/Models/Data/OrganizationData.cs
Normal file
45
src/Core/Models/Data/OrganizationData.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using Bit.Core.Enums;
|
||||
using Bit.Core.Models.Response;
|
||||
|
||||
namespace Bit.Core.Models.Data
|
||||
{
|
||||
public class OrganizationData
|
||||
{
|
||||
public OrganizationData(ProfileOrganizationResponse response)
|
||||
{
|
||||
Id = response.Id;
|
||||
Name = response.Name;
|
||||
Status = response.Status;
|
||||
Type = response.Type;
|
||||
Enabled = response.Enabled;
|
||||
UseGroups = response.UseGroups;
|
||||
UseDirectory = response.UseDirectory;
|
||||
UseEvents = response.UseEvents;
|
||||
UseTotp = response.UseTotp;
|
||||
Use2fa = response.Use2fa;
|
||||
UseApi = response.UseApi;
|
||||
SelfHost = response.SelfHost;
|
||||
UsersGetPremium = response.UsersGetPremium;
|
||||
Seats = response.Seats;
|
||||
MaxCollections = response.MaxCollections;
|
||||
MaxStorageGb = response.MaxStorageGb;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public OrganizationUserStatusType Status { get; set; }
|
||||
public OrganizationUserType Type { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public bool UseGroups { get; set; }
|
||||
public bool UseDirectory { get; set; }
|
||||
public bool UseEvents { get; set; }
|
||||
public bool UseTotp { get; set; }
|
||||
public bool Use2fa { get; set; }
|
||||
public bool UseApi { get; set; }
|
||||
public bool SelfHost { get; set; }
|
||||
public bool UsersGetPremium { get; set; }
|
||||
public int Seats { get; set; }
|
||||
public int MaxCollections { get; set; }
|
||||
public short? MaxStorageGb { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user