symphony.bdk.core.activity.user_joined_room.UserJoinedRoomActivity#

class symphony.bdk.core.activity.user_joined_room.UserJoinedRoomActivity(*args, **kwds)#

Bases: symphony.bdk.core.activity.api.AbstractActivity[symphony.bdk.core.activity.user_joined_room.UserJoinedRoomContext]

A form reply activity corresponds to a User joining a room .

__init__()#

Methods

__init__()

before_matcher(context)

This callback can be used to prepare ActivityContext before actually processing the matches method.

matches(context)

Matches the ActivityContext to decide whether an AbstractActivity can be executed or not.

on_activity(context)

Contains the activity business logic.

before_matcher(context: symphony.bdk.core.activity.api.C)#

This callback can be used to prepare ActivityContext before actually processing the matches method.

Parameters

context – an instance of ActivityContext

matches(context: symphony.bdk.core.activity.user_joined_room.UserJoinedRoomContext) bool#

Matches the ActivityContext to decide whether an AbstractActivity can be executed or not.

Parameters

context – an instance of ActivityContext

Returns

True if activity has to be triggered, False otherwise.

async on_activity(context: symphony.bdk.core.activity.user_joined_room.UserJoinedRoomContext)#

Contains the activity business logic. Executed only if the matches method returned a true value.

Parameters

context – an instance of ActivityContext