Skip to content

Commit c00ee6e

Browse files
committed
Apply disallowance PK renamings to API responses aswell
1 parent 3924dea commit c00ee6e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Refresh.Interfaces.APIv3/Endpoints/DataTypes/Response/Disallowed/ApiDisallowedEmailAddressResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Refresh.Interfaces.APIv3.Endpoints.DataTypes.Response.Disallowed;
66
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
77
public class ApiDisallowedEmailAddressResponse : IApiResponse, IDataConvertableFrom<ApiDisallowedEmailAddressResponse, DisallowedEmailAddress>
88
{
9-
public required string Address { get; set; }
9+
public required string AddressLower { get; set; }
1010
public required string Reason { get; set; }
1111
public required DateTimeOffset DisallowedAt { get; set; }
1212

@@ -16,7 +16,7 @@ public class ApiDisallowedEmailAddressResponse : IApiResponse, IDataConvertableF
1616

1717
return new ApiDisallowedEmailAddressResponse
1818
{
19-
Address = old.Address,
19+
AddressLower = old.AddressLower,
2020
Reason = old.Reason,
2121
DisallowedAt = old.DisallowedAt,
2222
};

Refresh.Interfaces.APIv3/Endpoints/DataTypes/Response/Disallowed/ApiDisallowedEmailDomainResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Refresh.Interfaces.APIv3.Endpoints.DataTypes.Response.Disallowed;
66
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
77
public class ApiDisallowedEmailDomainResponse : IApiResponse, IDataConvertableFrom<ApiDisallowedEmailDomainResponse, DisallowedEmailDomain>
88
{
9-
public required string Domain { get; set; }
9+
public required string DomainLower { get; set; }
1010
public required string Reason { get; set; }
1111
public required DateTimeOffset DisallowedAt { get; set; }
1212

@@ -16,7 +16,7 @@ public class ApiDisallowedEmailDomainResponse : IApiResponse, IDataConvertableFr
1616

1717
return new ApiDisallowedEmailDomainResponse
1818
{
19-
Domain = old.Domain,
19+
DomainLower = old.DomainLower,
2020
Reason = old.Reason,
2121
DisallowedAt = old.DisallowedAt,
2222
};

Refresh.Interfaces.APIv3/Endpoints/DataTypes/Response/Disallowed/ApiDisallowedUsernameResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Refresh.Interfaces.APIv3.Endpoints.DataTypes.Response.Disallowed;
66
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
77
public class ApiDisallowedUsernameResponse : IApiResponse, IDataConvertableFrom<ApiDisallowedUsernameResponse, DisallowedUser>
88
{
9-
public required string Username { get; set; }
9+
public required string UsernameLower { get; set; }
1010
public required string Reason { get; set; }
1111
public required DateTimeOffset DisallowedAt { get; set; }
1212

@@ -16,7 +16,7 @@ public class ApiDisallowedUsernameResponse : IApiResponse, IDataConvertableFrom<
1616

1717
return new ApiDisallowedUsernameResponse
1818
{
19-
Username = old.Username,
19+
UsernameLower = old.UsernameLower,
2020
Reason = old.Reason,
2121
DisallowedAt = old.DisallowedAt,
2222
};

0 commit comments

Comments
 (0)