Files
server/src/Core/Models/Api/Response/ProfileOrganizationResponseModel.cs

35 lines
1.2 KiB
C#
Raw Normal View History

2017-03-06 20:51:13 -05:00
using Bit.Core.Enums;
using Bit.Core.Models.Data;
2017-03-08 21:55:08 -05:00
namespace Bit.Core.Models.Api
2017-03-06 20:51:13 -05:00
{
public class ProfileOrganizationResponseModel : ResponseModel
{
public ProfileOrganizationResponseModel(OrganizationUserOrganizationDetails organization)
: base("profileOrganization")
{
Id = organization.OrganizationId.ToString();
Name = organization.Name;
2017-05-08 14:22:40 -04:00
UseGroups = organization.UseGroups;
2017-05-20 15:31:16 -04:00
UseDirectory = organization.UseDirectory;
2017-05-08 14:22:40 -04:00
Seats = organization.Seats;
MaxCollections = organization.MaxCollections;
2017-03-06 20:51:13 -05:00
Key = organization.Key;
Status = organization.Status;
2017-03-25 21:21:38 -04:00
Type = organization.Type;
2017-04-11 15:57:13 -04:00
Enabled = organization.Enabled;
2017-03-06 20:51:13 -05:00
}
public string Id { get; set; }
public string Name { get; set; }
2017-05-08 14:22:40 -04:00
public bool UseGroups { get; set; }
2017-05-20 15:31:16 -04:00
public bool UseDirectory { get; set; }
2017-05-08 14:22:40 -04:00
public int Seats { get; set; }
public int MaxCollections { get; set; }
2017-03-06 20:51:13 -05:00
public string Key { get; set; }
public OrganizationUserStatusType Status { get; set; }
2017-03-25 16:34:30 -04:00
public OrganizationUserType Type { get; set; }
2017-04-11 15:57:13 -04:00
public bool Enabled { get; set; }
2017-03-06 20:51:13 -05:00
}
}