add handers for channels
This commit is contained in:
parent
7f68f9870c
commit
8d4277b1c7
23
src/internal/m365/collection/groups/handler.go
Normal file
23
src/internal/m365/collection/groups/handler.go
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package groups
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
|
"github.com/alcionai/corso/src/pkg/services/m365/api"
|
||||||
|
"github.com/microsoft/kiota-abstractions-go/serialization"
|
||||||
|
"github.com/microsoftgraph/msgraph-sdk-go/models"
|
||||||
|
)
|
||||||
|
|
||||||
|
type BackupChannelHandler interface {
|
||||||
|
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)
|
||||||
|
}
|
||||||
1
src/pkg/services/m365/api/channels.go
Normal file
1
src/pkg/services/m365/api/channels.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package api
|
||||||
39
src/pkg/services/m365/api/channels_pager.go
Normal file
39
src/pkg/services/m365/api/channels_pager.go
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
package api
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
// item pager
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
type MessageItemDeltaEnumerator interface {
|
||||||
|
GetPage(context.Context) (DeltaPageLinker, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: implement
|
||||||
|
// var _ MessageItemDeltaEnumerator = &messagePageCtrl{}
|
||||||
|
|
||||||
|
// type messagePageCtrl struct {
|
||||||
|
// gs graph.Servicer
|
||||||
|
// builder *teams.ItemChannelsItemMessagesRequestBuilder
|
||||||
|
// options *teams.ItemChannelsItemMessagesRequestBuilderGetRequestConfiguration
|
||||||
|
// }
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
// channel pager
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
type ChannelItemDeltaEnumerator interface {
|
||||||
|
GetPage(context.Context) (DeltaPageLinker, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: implement
|
||||||
|
// var _ ChannelsItemDeltaEnumerator = &channelsPageCtrl{}
|
||||||
|
|
||||||
|
// type channelsPageCtrl struct {
|
||||||
|
// gs graph.Servicer
|
||||||
|
// builder *teams.ItemChannelsChannelItemRequestBuilder
|
||||||
|
// options *teams.ItemChannelsChannelItemRequestBuilderGetRequestConfiguration
|
||||||
|
// }
|
||||||
Loading…
x
Reference in New Issue
Block a user