MatrixEventRoomJoinRules

MatrixEventRoomJoinRules — Class to hold a m.room.join_rules event.

Functions

Types and Values

Description

A room may be public meaning anyone can join the room without any prior action. Alternatively, it can be invite meaning that a user who wishes to join the room must first receive an invite to the room from someone already inside of the room. Currently, knock and private are reserved keywords which are not implemented.

Functions

MATRIX_EVENT_TYPE_ROOM_JOIN_RULES

#define MATRIX_EVENT_TYPE_ROOM_JOIN_RULES (matrix_event_room_join_rules_get_type ())

The type for MatrixEventRoomJoinRules.


matrix_event_room_join_rules_new ()

MatrixEventRoomJoinRules *
matrix_event_room_join_rules_new (void);

matrix_event_room_join_rules_get_join_rules ()

MatrixJoinRules
matrix_event_room_join_rules_get_join_rules
                               (MatrixEventRoomJoinRules *self);

Get and return the current value of the "join-rules" property.

Parameters

self

the MatrixEventRoomJoinRules instance to query

 

Returns

the value of the "join-rules" property


matrix_event_room_join_rules_set_join_rules ()

void
matrix_event_room_join_rules_set_join_rules
                               (MatrixEventRoomJoinRules *self,
                                MatrixJoinRules value);

Set the value of the "join-rules" property to value .

Parameters

self

the MatrixEventRoomJoinRules instance to modify

 

value

the new value of the "join-rules" property

 

Types and Values

struct MatrixEventRoomJoinRules

struct MatrixEventRoomJoinRules {
	MatrixEventState parent_instance;
	MatrixEventRoomJoinRulesPrivate * priv;
};

Class to hold a m.room.join_rules event.

A room may be public meaning anyone can join the room without any prior action. Alternatively, it can be invite meaning that a user who wishes to join the room must first receive an invite to the room from someone already inside of the room. Currently, knock and private are reserved keywords which are not implemented.


struct MatrixEventRoomJoinRulesClass

struct MatrixEventRoomJoinRulesClass {
	MatrixEventStateClass parent_class;
};

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

Members

MatrixEventStateClass parent_class;

the parent class structure