mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-06-17 17:14:52 +02:00
22 lines
617 B
Java
22 lines
617 B
Java
package org.mercury_im.messenger.entity.message;
|
|
|
|
import org.mercury_im.messenger.entity.message.content.Payload;
|
|
|
|
import java.util.List;
|
|
|
|
import lombok.Data;
|
|
|
|
/**
|
|
* Defines a certain set of {@link Payload Payloads} of a message.
|
|
* A {@link PayloadContainer} can either be a plaintext container or an encrypted container and contains
|
|
* {@link Payload Payloads}.
|
|
*
|
|
* A message may contain encrypted and unencrypted payloads. Those could then be represented by
|
|
* two different {@link PayloadContainer PayloadContainers}.
|
|
*/
|
|
@Data
|
|
public class PayloadContainer {
|
|
long id;
|
|
List<Payload> messageContents;
|
|
}
|