Class OlmMessage
An Olm message as sent in m.room.encrypted to-device content.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Crypto
Assembly: Uniform.Matrix.Protocol.Crypto.dll
Syntax
public sealed record OlmMessage : IEquatable<OlmMessage>
Constructors
| Edit this page View SourceOlmMessage(int, string)
An Olm message as sent in m.room.encrypted to-device content.
Declaration
public OlmMessage(int Type, string Body)
Parameters
| Type | Name | Description |
|---|---|---|
| int | Type | 0 for a pre-key message that starts a session, 1 for a normal message. |
| string | Body | Ciphertext, unpadded base64. |
Properties
| Edit this page View SourceBody
Ciphertext, unpadded base64.
Declaration
public string Body { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Type
0 for a pre-key message that starts a session, 1 for a normal message.
Declaration
public int Type { get; init; }
Property Value
| Type | Description |
|---|---|
| int |