1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-22 03:03:46 +00:00

user service

This commit is contained in:
Kyle Spearrin
2019-04-09 16:13:32 -04:00
parent 929727ba41
commit 13a2206735
4 changed files with 316 additions and 0 deletions

View 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; }
}
}