Add file /graph/betasdk/beta_service.go

This commit is contained in:
Danny Adams 2023-01-27 10:50:46 -05:00
parent 3228bfbe1e
commit 946767edcc

View File

@ -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
}