MatrixEventPresence

MatrixEventPresence — Class for representing presence events

Functions

Types and Values

Description

Informs the client of a user's presence state change.

Functions

MATRIX_EVENT_TYPE_PRESENCE

#define MATRIX_EVENT_TYPE_PRESENCE (matrix_event_presence_get_type ())

The type for MatrixEventPresence.


matrix_event_presence_new ()

MatrixEventPresence *
matrix_event_presence_new (void);

matrix_event_presence_get_avatar_url ()

const gchar *
matrix_event_presence_get_avatar_url (MatrixEventPresence *self);

Get and return the current value of the "avatar-url" property.

The current avatar URL for this user, if any.

Parameters

self

the MatrixEventPresence instance to query

 

Returns

the value of the "avatar-url" property


matrix_event_presence_set_avatar_url ()

void
matrix_event_presence_set_avatar_url (MatrixEventPresence *self,
                                      const gchar *value);

Set the value of the "avatar-url" property to value .

The current avatar URL for this user, if any.

Parameters

self

the MatrixEventPresence instance to modify

 

value

the new value of the "avatar-url" property

 

matrix_event_presence_get_display_name ()

const gchar *
matrix_event_presence_get_display_name
                               (MatrixEventPresence *self);

Get and return the current value of the "display-name" property.

The current display name for this user, if any.

Parameters

self

the MatrixEventPresence instance to query

 

Returns

the value of the "display-name" property


matrix_event_presence_set_display_name ()

void
matrix_event_presence_set_display_name
                               (MatrixEventPresence *self,
                                const gchar *value);

Set the value of the "display-name" property to value .

The current display name for this user, if any.

Parameters

self

the MatrixEventPresence instance to modify

 

value

the new value of the "display-name" property

 

matrix_event_presence_get_last_active_ago ()

glong
matrix_event_presence_get_last_active_ago
                               (MatrixEventPresence *self);

Get and return the current value of the "last-active-ago" property.

The last time since this used performed some action, in milliseconds.

This won’t get into the generated event JSON if negative.

Parameters

self

the MatrixEventPresence instance to query

 

Returns

the value of the "last-active-ago" property


matrix_event_presence_set_last_active_ago ()

void
matrix_event_presence_set_last_active_ago
                               (MatrixEventPresence *self,
                                glong value);

Set the value of the "last-active-ago" property to value .

The last time since this used performed some action, in milliseconds.

This won’t get into the generated event JSON if negative.

Parameters

self

the MatrixEventPresence instance to modify

 

value

the new value of the "last-active-ago" property

 

matrix_event_presence_get_user_id ()

const gchar *
matrix_event_presence_get_user_id (MatrixEventPresence *self);

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

The user's ID.

Parameters

self

the MatrixEventPresence instance to query

 

Returns

the value of the "user-id" property


matrix_event_presence_set_user_id ()

void
matrix_event_presence_set_user_id (MatrixEventPresence *self,
                                   const gchar *value);

Set the value of the "user-id" property to value .

The user's ID.

Parameters

self

the MatrixEventPresence instance to modify

 

value

the new value of the "user-id" property

 

matrix_event_presence_get_event_id ()

const gchar *
matrix_event_presence_get_event_id (MatrixEventPresence *self);

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

Parameters

self

the MatrixEventPresence instance to query

 

Returns

the value of the "event-id" property


matrix_event_presence_set_event_id ()

void
matrix_event_presence_set_event_id (MatrixEventPresence *self,
                                    const gchar *value);

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

Parameters

self

the MatrixEventPresence instance to modify

 

value

the new value of the "event-id" property

 

matrix_event_presence_get_presence ()

MatrixPresence
matrix_event_presence_get_presence (MatrixEventPresence *self);

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

The presence state for this user.

Parameters

self

the MatrixEventPresence instance to query

 

Returns

the value of the "presence" property


matrix_event_presence_set_presence ()

void
matrix_event_presence_set_presence (MatrixEventPresence *self,
                                    MatrixPresence value);

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

The presence state for this user.

Parameters

self

the MatrixEventPresence instance to modify

 

value

the new value of the "presence" property

 

Types and Values

struct MatrixEventPresence

struct MatrixEventPresence {
	MatrixEventBase parent_instance;
	MatrixEventPresencePrivate * priv;
};

Class for representing presence events

Informs the client of a user's presence state change.


struct MatrixEventPresenceClass

struct MatrixEventPresenceClass {
	MatrixEventBaseClass parent_class;
};

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

Members

MatrixEventBaseClass parent_class;

the parent class structure