Nakama C++ Client SDK 2.5.1
Client for Nakama Server
NChannelMessage Struct Reference

A message sent on a channel. More...

#include <NChannelMessage.h>

Public Attributes

std::string channelId
 The channel this message belongs to. More...
 
std::string messageId
 The unique ID of this message. More...
 
int32_t code = 0
 The code representing a message type or category. More...
 
std::string senderId
 Message sender, usually a user ID. More...
 
std::string username
 The username of the message sender, if any. More...
 
std::string content
 The content payload. More...
 
NTimestamp createTime = 0
 The UNIX time when the message was created. More...
 
NTimestamp updateTime = 0
 The UNIX time when the message was last updated. More...
 
bool persistent = false
 True if the message was persisted to the channel's history, false otherwise. More...
 
std::string roomName
 The name of the chat room, or an empty string if this message was not sent through a chat room. More...
 
std::string groupId
 The ID of the group, or an empty string if this message was not sent through a group channel. More...
 
std::string userIdOne
 The ID of the first DM user, or an empty string if this message was not sent through a DM chat. More...
 
std::string userIdTwo
 The ID of the second DM user, or an empty string if this message was not sent through a DM chat. More...
 

Detailed Description

A message sent on a channel.

Member Data Documentation

◆ channelId

std::string NChannelMessage::channelId

The channel this message belongs to.

◆ code

int32_t NChannelMessage::code = 0

The code representing a message type or category.

◆ content

std::string NChannelMessage::content

The content payload.

◆ createTime

NTimestamp NChannelMessage::createTime = 0

The UNIX time when the message was created.

◆ groupId

std::string NChannelMessage::groupId

The ID of the group, or an empty string if this message was not sent through a group channel.

◆ messageId

std::string NChannelMessage::messageId

The unique ID of this message.

◆ persistent

bool NChannelMessage::persistent = false

True if the message was persisted to the channel's history, false otherwise.

◆ roomName

std::string NChannelMessage::roomName

The name of the chat room, or an empty string if this message was not sent through a chat room.

◆ senderId

std::string NChannelMessage::senderId

Message sender, usually a user ID.

◆ updateTime

NTimestamp NChannelMessage::updateTime = 0

The UNIX time when the message was last updated.

◆ userIdOne

std::string NChannelMessage::userIdOne

The ID of the first DM user, or an empty string if this message was not sent through a DM chat.

◆ userIdTwo

std::string NChannelMessage::userIdTwo

The ID of the second DM user, or an empty string if this message was not sent through a DM chat.

◆ username

std::string NChannelMessage::username

The username of the message sender, if any.


The documentation for this struct was generated from the following file: