|
ImagingTools Core SDK
|
#include <CParticipantDbDelegateComp.h>
Inherits imtdb::CSqlDatabaseObjectDelegateCompBase.
Public Member Functions | |
| QByteArray | CreateAddParticipantQuery (const QByteArray &conversationId, const QByteArray &userId) const |
| QByteArray | CreateRemoveParticipantQuery (const QByteArray &conversationId, const QByteArray &userId) const |
Database delegate for the ConversationParticipants table.
Manages the many-to-many relationship between conversations and users, tracking when each participant joined a conversation.
Definition at line 18 of file CParticipantDbDelegateComp.h.
| QByteArray imtchatdb::CParticipantDbDelegateComp::CreateAddParticipantQuery | ( | const QByteArray & | conversationId, |
| const QByteArray & | userId | ||
| ) | const |
Build a query to add a user to a conversation.
| conversationId | Target conversation. |
| userId | User to add. |
| QByteArray imtchatdb::CParticipantDbDelegateComp::CreateRemoveParticipantQuery | ( | const QByteArray & | conversationId, |
| const QByteArray & | userId | ||
| ) | const |
Build a query to remove a user from a conversation.
| conversationId | Target conversation. |
| userId | User to remove. |