mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00

* Swagger fixes Co-Authored-By: Oscar Hinton <Hinton@users.noreply.github.com> * Make Response Models return Guids instead of strings * Change strings into guids in ScimApplicationFactory --------- Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using Bit.Core.Entities;
|
|
using Bit.Core.Models.Api;
|
|
|
|
namespace Bit.Api.Models.Response.Organizations;
|
|
|
|
public class OrganizationDomainResponseModel : ResponseModel
|
|
{
|
|
public OrganizationDomainResponseModel(OrganizationDomain organizationDomain, string obj = "organizationDomain")
|
|
: base(obj)
|
|
{
|
|
if (organizationDomain == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(organizationDomain));
|
|
}
|
|
|
|
Id = organizationDomain.Id;
|
|
OrganizationId = organizationDomain.OrganizationId;
|
|
Txt = organizationDomain.Txt;
|
|
DomainName = organizationDomain.DomainName;
|
|
CreationDate = organizationDomain.CreationDate;
|
|
NextRunDate = organizationDomain.NextRunDate;
|
|
JobRunCount = organizationDomain.JobRunCount;
|
|
VerifiedDate = organizationDomain.VerifiedDate;
|
|
LastCheckedDate = organizationDomain.LastCheckedDate;
|
|
}
|
|
|
|
public Guid Id { get; set; }
|
|
public Guid OrganizationId { get; set; }
|
|
public string Txt { get; set; }
|
|
public string DomainName { get; set; }
|
|
public DateTime CreationDate { get; set; }
|
|
public DateTime NextRunDate { get; set; }
|
|
public int JobRunCount { get; set; }
|
|
public DateTime? VerifiedDate { get; set; }
|
|
public DateTime? LastCheckedDate { get; set; }
|
|
}
|