-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API endpoints for waiting for transfer archives
- Loading branch information
1 parent
7ff4815
commit 73fb1fc
Showing
4 changed files
with
271 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...c/main/java/org/whispersystems/textsecuregcm/entities/TransferArchiveUploadedRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2024 Signal Messenger, LLC | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
package org.whispersystems.textsecuregcm.entities; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import org.whispersystems.textsecuregcm.storage.Device; | ||
import javax.validation.Valid; | ||
import javax.validation.constraints.Max; | ||
import javax.validation.constraints.Min; | ||
import javax.validation.constraints.Positive; | ||
|
||
public record TransferArchiveUploadedRequest(@Min(1) | ||
@Max(Device.MAXIMUM_DEVICE_ID) | ||
@Schema(description = "The ID of the device for which the transfer archive has been prepared") | ||
byte destinationDeviceId, | ||
|
||
@Positive | ||
@Schema(description = "The timestamp, in milliseconds since the epoch, at which the destination device was created") | ||
long destinationDeviceCreated, | ||
|
||
@Schema(description = "The location of the transfer archive") | ||
@Valid | ||
RemoteAttachment transferArchive) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters