comments message update

This commit is contained in:
neha-Gupta1 2023-08-25 12:00:27 +05:30
parent 0dfb1b1d4d
commit deacf812ca
3 changed files with 9 additions and 19 deletions

View File

@ -1,17 +0,0 @@
package groups
import (
"context"
"github.com/microsoft/kiota-abstractions-go/serialization"
"github.com/microsoftgraph/msgraph-sdk-go/models"
"github.com/alcionai/corso/src/pkg/services/m365/api"
)
type BackupMessagesHandler interface {
GetMessage(ctx context.Context, teamID, channelID, itemID string) (models.ChatMessageable, error)
NewMessagePager(teamID, channelID string) api.ChannelMessageDeltaEnumerator
GetChannel(ctx context.Context, teamID, channelID string) (models.Channelable, error)
GetReply(ctx context.Context, teamID, channelID, messageID string) (serialization.Parsable, error)
}

View File

@ -31,3 +31,10 @@ type BackupHandler interface {
teamID, channelID, messageID string,
) (serialization.Parsable, error)
}
type BackupMessagesHandler interface {
GetMessage(ctx context.Context, teamID, channelID, itemID string) (models.ChatMessageable, error)
NewMessagePager(teamID, channelID string) api.ChannelMessageDeltaEnumerator
GetChannel(ctx context.Context, teamID, channelID string) (models.Channelable, error)
GetReply(ctx context.Context, teamID, channelID, messageID string) (serialization.Parsable, error)
}

View File

@ -135,7 +135,7 @@ func (c Channels) GetMessage(
// GetReplies retrieves a Messageable item.
func (c Channels) GetReplies(
ctx context.Context,
teamID, channelID, itemID string,
teamID, channelID, messageID string,
) (serialization.Parsable, error) {
replies, err := c.Stable.
Client().
@ -144,7 +144,7 @@ func (c Channels) GetReplies(
Channels().
ByChannelId(channelID).
Messages().
ByChatMessageId(itemID).
ByChatMessageId(messageID).
Replies().
Get(ctx, nil)
if err != nil {