@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
141 lines • 6.89 kB
JavaScript
export class DataSourceDecorator {
dataSource;
constructor(dataSource) {
this.dataSource = dataSource;
}
getId() {
throw new Error("Method not implemented.");
}
getTextMessageOptions(loggedInUser, messageObject, theme, group, additionalParams) {
return this.dataSource.getTextMessageOptions(loggedInUser, messageObject, theme, group, additionalParams);
}
getAudioMessageOptions(loggedInUser, messageObject, theme, group, additionalParams) {
return this.dataSource.getAudioMessageOptions(loggedInUser, messageObject, theme, group, additionalParams);
}
getVideoMessageOptions(loggedInUser, messageObject, theme, group, additionalParams) {
return this.dataSource.getVideoMessageOptions(loggedInUser, messageObject, theme, group, additionalParams);
}
getImageMessageOptions(loggedInUser, messageObject, theme, group, additionalParams) {
return this.dataSource.getImageMessageOptions(loggedInUser, messageObject, theme, group, additionalParams);
}
getFileMessageOptions(loggedInUser, messageObject, theme, group, additionalParams) {
return this.dataSource.getFileMessageOptions(loggedInUser, messageObject, theme, group, additionalParams);
}
getMessageOptions(loggedInUser, messageObject, theme, group, additionalParams) {
return this.dataSource.getMessageOptions(loggedInUser, messageObject, theme, group, additionalParams);
}
getCommonOptions(loggedInUser, messageObject, theme, group, additionalParams) {
return this.dataSource.getCommonOptions(loggedInUser, messageObject, theme, group, additionalParams);
}
getBottomView(message, alignment) {
return this.dataSource.getBottomView(message, alignment);
}
getDeleteMessageBubble(message, theme) {
return this.dataSource.getDeleteMessageBubble(message, theme);
}
getVideoMessageBubble(videoUrl, thumbnailUrl, message, theme) {
return this.dataSource.getVideoMessageBubble(videoUrl, thumbnailUrl, message, theme);
}
getTextMessageBubble(messageText, message, alignment, theme, additionalParams) {
return this.dataSource.getTextMessageBubble(messageText, message, alignment, theme, additionalParams);
}
getImageMessageBubble(imageUrl, caption, message, theme) {
return this.dataSource.getImageMessageBubble(imageUrl, caption, message, theme);
}
getAudioMessageBubble(audioUrl, title, style, //ToDoM: remove any
message, theme) {
return this.dataSource.getAudioMessageBubble(audioUrl, title, style, message, theme);
}
getFileMessageBubble(fileUrl, title, style, //ToDoM: remove any
message, theme) {
return this.dataSource.getFileMessageBubble(fileUrl, title, style, message, theme);
}
getGroupActionBubble(message, theme) {
return this.dataSource.getGroupActionBubble(message, theme);
}
getTextMessageContentView(message, alignment, theme, additionalParams) {
return this.dataSource.getTextMessageContentView(message, alignment, theme, additionalParams);
}
getAudioMessageContentView(message, alignment, theme) {
return this.dataSource.getAudioMessageContentView(message, alignment, theme);
}
getVideoMessageContentView(message, alignment, theme) {
return this.dataSource.getVideoMessageContentView(message, alignment, theme);
}
getImageMessageContentView(message, alignment, theme) {
return this.dataSource.getImageMessageContentView(message, alignment, theme);
}
getFileMessageContentView(message, alignment, theme) {
return this.dataSource.getFileMessageContentView(message, alignment, theme);
}
getTextMessageTemplate(theme, additionalParams) {
return this.dataSource.getTextMessageTemplate(theme, additionalParams);
}
getFormMessageTemplate(theme, additionalParams) {
return this.dataSource.getFormMessageTemplate(theme, additionalParams);
}
getSchedulerMessageTemplate(theme, additionalParams) {
return this.dataSource.getSchedulerMessageTemplate(theme, additionalParams);
}
getCardMessageTemplate(theme, additionalParams) {
return this.dataSource.getCardMessageTemplate(theme, additionalParams);
}
getAudioMessageTemplate(theme, additionalParams) {
return this.dataSource.getAudioMessageTemplate(theme, additionalParams);
}
getVideoMessageTemplate(theme, additionalParams) {
return this.dataSource.getVideoMessageTemplate(theme, additionalParams);
}
getImageMessageTemplate(theme, additionalParams) {
return this.dataSource.getImageMessageTemplate(theme, additionalParams);
}
getFileMessageTemplate(theme, additionalParams) {
return this.dataSource.getFileMessageTemplate(theme, additionalParams);
}
getAllMessageTemplates(theme, additionalParams) {
return this.dataSource.getAllMessageTemplates(theme, additionalParams);
}
getMessageTemplate(messageType, MessageCategory, theme, additionalParams) {
return this.dataSource.getMessageTemplate(messageType, MessageCategory, theme, additionalParams);
}
getGroupActionTemplate(theme) {
return this.dataSource.getGroupActionTemplate(theme);
}
getAllMessageTypes() {
return this.dataSource.getAllMessageTypes();
}
getAllMessageCategories() {
return this.dataSource.getAllMessageCategories();
}
getAuxiliaryOptions(user, group, id, additionalAuxiliaryParams) {
return this.dataSource.getAuxiliaryOptions(user, group, id, additionalAuxiliaryParams);
}
getMessageTypeToSubtitle(messageType) {
return this.dataSource.getMessageTypeToSubtitle(messageType);
}
getAttachmentOptions(theme, user, group, composerId, additionalAttachmentOptionsParams) {
return this.dataSource.getAttachmentOptions(theme, user, group, composerId, additionalAttachmentOptionsParams);
}
getAuxiliaryButtonOptions() {
return this.dataSource.getAuxiliaryButtonOptions();
}
getLastConversationMessage(conversation, theme) {
return this.dataSource.getLastConversationMessage(conversation, theme);
}
getAuxiliaryHeaderAppbarOptions(user, group, additionalAuxiliaryHeaderOptionsParams) {
return this.dataSource.getAuxiliaryHeaderAppbarOptions(user, group, additionalAuxiliaryHeaderOptionsParams);
}
getAllTextFormatters(loggedInUser) {
return [
this.dataSource.getMentionsFormatter(loggedInUser),
this.dataSource.getUrlsFormatter(loggedInUser),
];
}
getMentionsFormatter(loggedInUser) {
return this.dataSource.getMentionsFormatter(loggedInUser);
}
getUrlsFormatter(loggedInUser) {
return this.dataSource.getUrlsFormatter(loggedInUser);
}
}
//# sourceMappingURL=DataSourceDecorator.js.map