Browse Source

[PM-4316] Use byte for GlobalEvalentDomainsType in DomainsResponseModel (#3343)

pull/3478/head
Oscar Hinton 2 years ago committed by GitHub
parent
commit
eab0838edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Api/Models/Response/DomainsResponseModel.cs

4
src/Api/Models/Response/DomainsResponseModel.cs

@ -43,12 +43,12 @@ public class DomainsResponseModel : ResponseModel @@ -43,12 +43,12 @@ public class DomainsResponseModel : ResponseModel
IEnumerable<GlobalEquivalentDomainsType> excludedDomains,
bool excluded)
{
Type = globalDomain;
Type = (byte)globalDomain;
Domains = domains;
Excluded = excluded && (excludedDomains?.Contains(globalDomain) ?? false);
}
public GlobalEquivalentDomainsType Type { get; set; }
public byte Type { get; set; }
public IEnumerable<string> Domains { get; set; }
public bool Excluded { get; set; }
}

Loading…
Cancel
Save