Rename registrationId field on TransferArchiveUploadedRequest

This commit is contained in:
Katherine
2025-08-04 12:50:56 -04:00
committed by GitHub
parent 6955e1ee20
commit 61f388f5f4
2 changed files with 5 additions and 5 deletions

View File

@@ -24,13 +24,13 @@ public record TransferArchiveUploadedRequest(
@Schema(description = """
The timestamp, in milliseconds since the epoch, at which the destination device was created.
Deprecated in favor of registrationId.
Deprecated in favor of `destinationDeviceRegistrationId`.
""", deprecated = true)
@Deprecated
Optional<@Positive Long> destinationDeviceCreated,
@Schema(description = "The registration ID of the destination device")
Optional<@Min(0) @Max(Device.MAX_REGISTRATION_ID) Integer> registrationId,
Optional<@Min(0) @Max(Device.MAX_REGISTRATION_ID) Integer> destinationDeviceRegistrationId,
@NotNull
@Valid
@@ -42,6 +42,6 @@ public record TransferArchiveUploadedRequest(
@AssertTrue
@Schema(hidden = true)
public boolean isExactlyOneDisambiguatorProvided() {
return destinationDeviceCreated.isPresent() ^ registrationId.isPresent();
return destinationDeviceCreated.isPresent() ^ destinationDeviceRegistrationId.isPresent();
}
}