public class OmemoMessageInformation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OmemoMessageInformation.CARBON
Types of Carbon Messages.
|
Constructor and Description |
---|
OmemoMessageInformation()
Empty constructor.
|
OmemoMessageInformation(IdentityKeyWrapper senderIdentityKey,
OmemoDevice senderDevice,
OmemoMessageInformation.CARBON carbon)
Creates a new OmemoMessageInformation object.
|
OmemoMessageInformation(IdentityKeyWrapper senderIdentityKey,
OmemoDevice senderDevice,
OmemoMessageInformation.CARBON carbon,
boolean omemo)
Create a new OmemoMessageInformation.
|
Modifier and Type | Method and Description |
---|---|
OmemoMessageInformation.CARBON |
getCarbon()
Return the carbon type.
|
OmemoDevice |
getSenderDevice()
Return the sender device.
|
IdentityKeyWrapper |
getSenderIdentityKey()
Return the sender devices identityKey.
|
boolean |
isOmemoMessage()
Return true, if this is (was) an OMEMO message.
|
void |
setCarbon(OmemoMessageInformation.CARBON carbon)
Set the carbon type.
|
void |
setSenderDevice(OmemoDevice senderDevice)
Set the sender device.
|
void |
setSenderIdentityKey(IdentityKeyWrapper senderIdentityKey)
Set the sender devices identityKey.
|
String |
toString() |
public OmemoMessageInformation()
public OmemoMessageInformation(IdentityKeyWrapper senderIdentityKey, OmemoDevice senderDevice, OmemoMessageInformation.CARBON carbon)
senderIdentityKey
- identityKey of the sender devicesenderDevice
- device that sent the messagecarbon
- Carbon typepublic OmemoMessageInformation(IdentityKeyWrapper senderIdentityKey, OmemoDevice senderDevice, OmemoMessageInformation.CARBON carbon, boolean omemo)
senderIdentityKey
- identityKey of the sender devicesenderDevice
- device that sent the messagecarbon
- Carbon typeomemo
- is this an omemo message?public IdentityKeyWrapper getSenderIdentityKey()
public void setSenderIdentityKey(IdentityKeyWrapper senderIdentityKey)
senderIdentityKey
- identityKeypublic OmemoDevice getSenderDevice()
public boolean isOmemoMessage()
public void setSenderDevice(OmemoDevice senderDevice)
senderDevice
- sender devicepublic OmemoMessageInformation.CARBON getCarbon()
public void setCarbon(OmemoMessageInformation.CARBON carbon)
carbon
- carbon type