diff --git a/src/internal/connector/graph/betasdk/beta_service.go b/src/internal/connector/graph/betasdk/beta_service.go new file mode 100644 index 000000000..aa65dc9c1 --- /dev/null +++ b/src/internal/connector/graph/betasdk/beta_service.go @@ -0,0 +1,20 @@ +package betasdk + +import ( + msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" +) + +// Service wraps BetaClient's functionality. +// Abstraction created to comply loosely with graph.Servicer +// methods for ease of switching between v1.0 and beta connnectors +type Service struct { + client *BetaClient +} + +func (s Service) Adapter() *msgraphsdk.GraphRequestAdapter { + return s.client.requestAdapter +} + +func (s Service) Client() *BetaClient { + return s.client +}