/
api_op_client.go
39 lines (31 loc) · 1005 Bytes
/
api_op_client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Package sync_stream contains auto-generated files. DO NOT MODIFY
package sync_stream
import (
"github.com/RJPearson94/twilio-sdk-go/client"
"github.com/RJPearson94/twilio-sdk-go/service/sync/v1/service/sync_stream/messages"
)
// Client for managing a specific stream resource
// See https://www.twilio.com/docs/sync/api/stream-resource for more details
type Client struct {
client *client.Client
serviceSid string
sid string
Messages *messages.Client
}
// ClientProperties are the properties required to manage the syncstream resources
type ClientProperties struct {
ServiceSid string
Sid string
}
// New creates a new instance of the syncstream client
func New(client *client.Client, properties ClientProperties) *Client {
return &Client{
client: client,
serviceSid: properties.ServiceSid,
sid: properties.Sid,
Messages: messages.New(client, messages.ClientProperties{
ServiceSid: properties.ServiceSid,
SyncStreamSid: properties.Sid,
}),
}
}