MatrixEventRoomCreate

MatrixEventRoomCreate — Class to hold a m.room.create event

Functions

Types and Values

Description

This is the first event in a room and cannot be changed. It acts as the root of all other events.

Functions

MATRIX_EVENT_TYPE_ROOM_CREATE

#define MATRIX_EVENT_TYPE_ROOM_CREATE (matrix_event_room_create_get_type ())

The type for MatrixEventRoomCreate.


matrix_event_room_create_new ()

MatrixEventRoomCreate *
matrix_event_room_create_new (void);

matrix_event_room_create_get_creator ()

const gchar *
matrix_event_room_create_get_creator (MatrixEventRoomCreate *self);

Get and return the current value of the "creator" property.

The user_id of the room creator. This is set by the homeserver.

Parameters

self

the MatrixEventRoomCreate instance to query

 

Returns

the value of the "creator" property


matrix_event_room_create_set_creator ()

void
matrix_event_room_create_set_creator (MatrixEventRoomCreate *self,
                                      const gchar *value);

Set the value of the "creator" property to value .

The user_id of the room creator. This is set by the homeserver.

Parameters

self

the MatrixEventRoomCreate instance to modify

 

value

the new value of the "creator" property

 

matrix_event_room_create_get_federate ()

gboolean
matrix_event_room_create_get_federate (MatrixEventRoomCreate *self);

Get and return the current value of the "federate" property.

Whether users on other servers can join this room. Defaults to true if key does not exist.

Parameters

self

the MatrixEventRoomCreate instance to query

 

Returns

the value of the "federate" property


matrix_event_room_create_set_federate ()

void
matrix_event_room_create_set_federate (MatrixEventRoomCreate *self,
                                       gboolean value);

Set the value of the "federate" property to value .

Whether users on other servers can join this room. Defaults to true if key does not exist.

Parameters

self

the MatrixEventRoomCreate instance to modify

 

value

the new value of the "federate" property

 

Types and Values

struct MatrixEventRoomCreate

struct MatrixEventRoomCreate {
	MatrixEventState parent_instance;
	MatrixEventRoomCreatePrivate * priv;
};

Class to hold a m.room.create event

This is the first event in a room and cannot be changed. It acts as the root of all other events.


struct MatrixEventRoomCreateClass

struct MatrixEventRoomCreateClass {
	MatrixEventStateClass parent_class;
};

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

Members

MatrixEventStateClass parent_class;

the parent class structure