Add file /graph/betasdk/beta_service.go
This commit is contained in:
parent
3228bfbe1e
commit
946767edcc
20
src/internal/connector/graph/betasdk/beta_service.go
Normal file
20
src/internal/connector/graph/betasdk/beta_service.go
Normal 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
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user