From 50bc044754627dc724a2fe0fa38753ef68828c6a Mon Sep 17 00:00:00 2001 From: Littlegnal <8847263+littleGnAl@users.noreply.github.com> Date: Wed, 4 Sep 2024 17:15:08 +0800 Subject: [PATCH] [rtm 2.2.1] Add more custom APIs (#138) --- .../custom_headers/CustomIAgoraStreamChannel.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/headers/rtm_2.2.1/custom_headers/CustomIAgoraStreamChannel.h b/headers/rtm_2.2.1/custom_headers/CustomIAgoraStreamChannel.h index 340a74e..3f79ded 100644 --- a/headers/rtm_2.2.1/custom_headers/CustomIAgoraStreamChannel.h +++ b/headers/rtm_2.2.1/custom_headers/CustomIAgoraStreamChannel.h @@ -11,9 +11,15 @@ class IStreamChannel { // ----------------------------- ๐Ÿ‘‡๐Ÿปnew API๐Ÿ‘‡๐Ÿป ----------------------------- /** * @iris_api_id: StreamChannel_publishTopicMessage_a31773e - * @source: virtual void publish(const char* channelName, const char* message, const size_t length, const PublishOptions& option, uint64_t& requestId) = 0; + * @source: virtual void publishTopicMessage(const char* topic, const char* message, size_t length, const TopicMessageOptions& option, uint64_t& requestId) = 0; */ - virtual void publishTopicBinaryMessage(const char* topic, const unsigned 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๐Ÿ‘†๐Ÿป ----------------------------- };