UNPKG

agora-react-native-rtm

Version:

React Native around the Agora RTM SDKs for Android and iOS agora

176 lines 4.72 kB
import { callIrisApi } from '../../internal/IrisRtmEngine'; // @ts-ignore export class IStreamChannelImpl { join(options) { const apiType = this.getApiTypeFromJoin(options); const jsonParams = { options: options, toJSON: () => { return { options: options }; } }; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromJoin(options) { return 'StreamChannel_join_2090a6b'; } renewToken(token) { const apiType = this.getApiTypeFromRenewToken(token); const jsonParams = { token: token, toJSON: () => { return { token: token }; } }; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromRenewToken(token) { return 'StreamChannel_renewToken_1fa04dd'; } leave() { const apiType = this.getApiTypeFromLeave(); const jsonParams = {}; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromLeave() { return 'StreamChannel_leave_90386a9'; } getChannelName() { const apiType = this.getApiTypeFromGetChannelName(); const jsonParams = {}; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromGetChannelName() { return 'StreamChannel_getChannelName'; } joinTopic(topic, options) { const apiType = this.getApiTypeFromJoinTopic(topic, options); const jsonParams = { topic: topic, options: options, toJSON: () => { return { topic: topic, options: options }; } }; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromJoinTopic(topic, options) { return 'StreamChannel_joinTopic_ff0ec3f'; } publishTopicMessage(topic, message, option) { const apiType = this.getApiTypeFromPublishTopicMessage(topic, message, option); const jsonParams = { topic: topic, message: message, option: option, toJSON: () => { return { topic: topic, message: message, option: option }; } }; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromPublishTopicMessage(topic, message, option) { return 'StreamChannel_publishTopicMessage_a31773e'; } leaveTopic(topic) { const apiType = this.getApiTypeFromLeaveTopic(topic); const jsonParams = { topic: topic, toJSON: () => { return { topic: topic }; } }; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromLeaveTopic(topic) { return 'StreamChannel_leaveTopic_1fa04dd'; } subscribeTopic(topic, options) { const apiType = this.getApiTypeFromSubscribeTopic(topic, options); const jsonParams = { topic: topic, options: options, toJSON: () => { return { topic: topic, options: options }; } }; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromSubscribeTopic(topic, options) { return 'StreamChannel_subscribeTopic_b801234'; } unsubscribeTopic(topic, options) { const apiType = this.getApiTypeFromUnsubscribeTopic(topic, options); const jsonParams = { topic: topic, options: options, toJSON: () => { return { topic: topic, options: options }; } }; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromUnsubscribeTopic(topic, options) { return 'StreamChannel_unsubscribeTopic_b801234'; } getSubscribedUserList(topic, requestId) { const apiType = this.getApiTypeFromGetSubscribedUserList(topic, requestId); const jsonParams = { topic: topic, requestId: requestId, toJSON: () => { return { topic: topic, requestId: requestId }; } }; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromGetSubscribedUserList(topic, requestId) { return 'StreamChannel_getSubscribedUserList_1fa04dd'; } setParameters(parameters) { const apiType = this.getApiTypeFromSetParameters(parameters); const jsonParams = { parameters: parameters, toJSON: () => { return { parameters: parameters }; } }; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromSetParameters(parameters) { return 'StreamChannel_setParameters_3a2037f'; } release() { const apiType = this.getApiTypeFromRelease(); const jsonParams = {}; return callIrisApi.call(this, apiType, jsonParams); } getApiTypeFromRelease() { return 'StreamChannel_release'; } } //# sourceMappingURL=IAgoraStreamChannelImpl.js.map