-
-
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.
Extract
RemoteAttachment
to a top-level entity
- Loading branch information
1 parent
30ec06c
commit 0adaa33
Showing
3 changed files
with
31 additions
and
19 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
22 changes: 22 additions & 0 deletions
22
service/src/main/java/org/whispersystems/textsecuregcm/entities/RemoteAttachment.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,22 @@ | ||
/* | ||
* 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 javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import org.whispersystems.textsecuregcm.util.ValidBase64URLString; | ||
|
||
public record RemoteAttachment( | ||
@Schema(description = "The attachment cdn") | ||
@NotNull | ||
Integer cdn, | ||
|
||
@NotBlank | ||
@ValidBase64URLString | ||
@Schema(description = "The attachment key") | ||
String key) { | ||
} |
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