From d1f0d683af2263044307fbea0c433aa3db375662 Mon Sep 17 00:00:00 2001 From: neha-Gupta1 Date: Fri, 18 Aug 2023 13:40:42 +0530 Subject: [PATCH] message handler --- src/internal/m365/collection/groups/handler.go | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/internal/m365/collection/groups/handler.go b/src/internal/m365/collection/groups/handler.go index 9134f1056..950f6c828 100644 --- a/src/internal/m365/collection/groups/handler.go +++ b/src/internal/m365/collection/groups/handler.go @@ -9,16 +9,10 @@ import ( "github.com/microsoft/kiota-abstractions-go/serialization" ) -type BackupChannelHandler interface { +type BackupMessagesHandler interface { + GetMessage(ctx context.Context, teamID, channelID, itemID string) (models.ChatMessageable, error) + NewMessagePager(teamID, channelID string) api.MessageItemDeltaEnumerator GetChannel(ctx context.Context, teamID, channelID string) (models.Channelable, error) NewChannelPager(teamID, channelID string) api.ChannelItemDeltaEnumerator -} - -type BackupMessagesHandler interface { - GetItem(ctx context.Context, teamID, channelID, itemID string) (models.ChatMessageable, error) - NewItemPager(teamID, channelID string) api.MessageItemDeltaEnumerator -} - -type BackupReplyHandler interface { - GetItem(ctx context.Context, teamID, channelID, messageID string) (serialization.Parsable, error) + GetReply(ctx context.Context, teamID, channelID, messageID string) (serialization.Parsable, error) }