MatrixEventRoomMessageFeedback

MatrixEventRoomMessageFeedback — Class to hold a m.room.message.feedback event.

Functions

Types and Values

Description

Usage of this event is discouraged in favour of the receipts module. Most clients will not recognise this event.

Feedback events are events sent to acknowledge a message in some way. There are two supported acknowledgements: `delivered` (sent when the event has been received) and `read` (sent when the event has been observed by the end-user). The `target_event_id` should reference the `m.room.message` event being acknowledged.

Functions

MATRIX_EVENT_TYPE_ROOM_MESSAGE_FEEDBACK

#define MATRIX_EVENT_TYPE_ROOM_MESSAGE_FEEDBACK (matrix_event_room_message_feedback_get_type ())

The type for MatrixEventRoomMessageFeedback.


matrix_event_room_message_feedback_new ()

MatrixEventRoomMessageFeedback *
matrix_event_room_message_feedback_new
                               (void);

matrix_event_room_message_feedback_get_feedback_type ()

const gchar *
matrix_event_room_message_feedback_get_feedback_type
                               (MatrixEventRoomMessageFeedback *self);

Get and return the current value of the "feedback-type" property.

The type of the feedback. As the use of this event type is discouraged, Matrix GLib SDK doesn’t implement this as an actual enum.

Parameters

self

the MatrixEventRoomMessageFeedback instance to query

 

Returns

the value of the "feedback-type" property


matrix_event_room_message_feedback_set_feedback_type ()

void
matrix_event_room_message_feedback_set_feedback_type
                               (MatrixEventRoomMessageFeedback *self,
                                const gchar *value);

Set the value of the "feedback-type" property to value .

The type of the feedback. As the use of this event type is discouraged, Matrix GLib SDK doesn’t implement this as an actual enum.

Parameters

self

the MatrixEventRoomMessageFeedback instance to modify

 

value

the new value of the "feedback-type" property

 

matrix_event_room_message_feedback_get_target_event_id ()

const gchar *
matrix_event_room_message_feedback_get_target_event_id
                               (MatrixEventRoomMessageFeedback *self);

Get and return the current value of the "target-event-id" property.

The event that this feedback is related to.

Parameters

self

the MatrixEventRoomMessageFeedback instance to query

 

Returns

the value of the "target-event-id" property


matrix_event_room_message_feedback_set_target_event_id ()

void
matrix_event_room_message_feedback_set_target_event_id
                               (MatrixEventRoomMessageFeedback *self,
                                const gchar *value);

Set the value of the "target-event-id" property to value .

The event that this feedback is related to.

Parameters

self

the MatrixEventRoomMessageFeedback instance to modify

 

value

the new value of the "target-event-id" property

 

Types and Values

struct MatrixEventRoomMessageFeedback

struct MatrixEventRoomMessageFeedback {
	MatrixEventRoom parent_instance;
	MatrixEventRoomMessageFeedbackPrivate * priv;
};

Class to hold a m.room.message.feedback event.

Usage of this event is discouraged in favour of the receipts module. Most clients will not recognise this event.

Feedback events are events sent to acknowledge a message in some way. There are two supported acknowledgements: `delivered` (sent when the event has been received) and `read` (sent when the event has been observed by the end-user). The `target_event_id` should reference the `m.room.message` event being acknowledged.


struct MatrixEventRoomMessageFeedbackClass

struct MatrixEventRoomMessageFeedbackClass {
	MatrixEventRoomClass parent_class;
};

The class structure for MATRIX_EVENT_TYPE_ROOM_MESSAGE_FEEDBACK. All the fields in this structure are private and should never be accessed directly.

Members

MatrixEventRoomClass parent_class;

the parent class structure