Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions headers/rtm_2.2.6.2/custom_headers/CustomIAgoraRtmClient.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#pragma once

#include "IAgoraStreamChannel.h"
#include "IAgoraRtmStorage.h"
#include "IAgoraRtmPresence.h"
#include "IAgoraRtmLock.h"
#include "AgoraRtmBase.h"
#include "IAgoraRtmClient.h"

namespace agora {
namespace rtm {
namespace ext {

class IRtmClient {
// ----------------------------- 👇🏻new API👇🏻 -----------------------------
/**
* @iris_api_id: RtmClient_publish_2d36e93
* @source: virtual void publish(const char* channelName, const char* message, const size_t length, const PublishOptions& option, uint64_t& requestId) = 0;
*/
virtual void publishBinaryMessage(const char* channelName, const unsigned char* message, const size_t length, const PublishOptions& option, uint64_t& requestId) = 0;

// ----------------------------- 👆🏻new API👆🏻 -----------------------------
};

} // namespace ext
} // namespace rtm
} // namespace agora
29 changes: 29 additions & 0 deletions headers/rtm_2.2.6.2/custom_headers/CustomIAgoraStreamChannel.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#pragma once

#include "AgoraRtmBase.h"
#include "IAgoraStreamChannel.h"

namespace agora {
namespace rtm {
namespace ext {

class IStreamChannel {
// ----------------------------- 👇🏻new API👇🏻 -----------------------------
/**
* @iris_api_id: StreamChannel_publishTopicMessage_a31773e
* @source: virtual void publishTopicMessage(const char* topic, const char* message, size_t length, const TopicMessageOptions& option, uint64_t& requestId) = 0;
*/
virtual void publishTextMessage(const char* topic, const char* message, size_t length, const TopicMessageOptions& option, uint64_t& requestId) = 0;

/**
* @iris_api_id: StreamChannel_publishTopicMessage_a31773e
* @source: virtual void publishTopicMessage(const char* topic, const char* message, size_t length, const TopicMessageOptions& option, uint64_t& requestId) = 0;
*/
virtual void publishBinaryMessage(const char* topic, const unsigned char* message, size_t length, const TopicMessageOptions& option, uint64_t& requestId) = 0;

// ----------------------------- 👆🏻new API👆🏻 -----------------------------
};

} // namespace ext
} // namespace rtm
} // namespace agora
Loading