Merge branch 'main' of https://github.com/alcionai/corso into channelPagerImplementation

This commit is contained in:
neha-Gupta1 2023-08-25 14:31:25 +05:30
commit a9372af65c
2 changed files with 8 additions and 2 deletions

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

@ -143,8 +143,7 @@ func (p *channelPageCtrl) ValuesIn(l PageLinker) ([]models.Channelable, error) {
}
func (p *channelPageCtrl) GetOdataNextLink() *string {
// TODO: no delta present here. Is it possible to have interface which does not have
// GetOdataNextLink method
// No next link preent in the API result
emptyString := ""
return &emptyString
}