Public Member Functions | |
| HRESULT | Clear (void) |
| HRESULT | AddMsg ([in] IRdNtChatMsg *pRdNtChatMsg) |
| HRESULT | GetNumMsgs (RtDWORD *pdwNumMsgs) |
| HRESULT | GetMsg (RtDWORD dwMsgNum, IRdNtChatMsg **ppRdNtChatMsg) |
| HRESULT | MaxNumOfMsgs ([out, retval] RtDWORD *pdwMaxNum) |
| HRESULT | MaxNumOfMsgs ([in] RtDWORD dwMaxNum) |
Example: This example demonstrates usage of IRdNtChat and IRdNtChatMsg objects. The code below create its own RdNtChat object, but you can read the one stored in Chat connector too.
// Create chat message and fill it with a data RdNtChatMsg = System.CreateDO("Network Package/Net Chat Msg Data"); RdNtChatMsg.ClientName = 'tester'; RdNtChatMsg.Text = 'This is a text' // Create chat object and add the chat message into it RdNtChat = System.CreateDO("Network Package/Net Chat Data"); RdNtChat.AddMsg(RdNtChatMsg); // Now enumerate all messages in RdNtChat object and show them in debug view dwNumMsgs = RdNtChat.GetNumMsgs(); for (ind = 0; ind < dwNumMsgs; ind++) { RdNtChatMsg = RdNtChat.GetMsg(ind); bstrLine = RdNtChatMsg.ClientName() + ': ' + RdNtChatMsg.Text() + '\n'; System.Trace(bstrLine); }
|
|
Delete all the chat messages. |
|
|
Add new message.
|
|
|
Get number of stored messages
|
|
||||||||||||
|
Get message with specified index.
|
|
|
Read maximum number of stored chat messages in this object.
|
|
|
Set maximum number of stored messages. The default value is 100. If new message is added and object already storing the maximum number of messages, then the last one is removed and all other messages are shifted.
|
1.3.2