/
api_op_client.go
43 lines (35 loc) · 1.18 KB
/
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
40
41
42
43
// Package participant contains auto-generated files. DO NOT MODIFY
package participant
import (
"github.com/RJPearson94/twilio-sdk-go/client"
"github.com/RJPearson94/twilio-sdk-go/service/proxy/v1/service/session/participant/message_interactions"
)
// Client for managing a specific participant resource
// See https://www.twilio.com/docs/proxy/api/participant for more details
type Client struct {
client *client.Client
serviceSid string
sessionSid string
sid string
MessageInteractions *message_interactions.Client
}
// ClientProperties are the properties required to manage the participant resources
type ClientProperties struct {
ServiceSid string
SessionSid string
Sid string
}
// New creates a new instance of the participant client
func New(client *client.Client, properties ClientProperties) *Client {
return &Client{
client: client,
serviceSid: properties.ServiceSid,
sessionSid: properties.SessionSid,
sid: properties.Sid,
MessageInteractions: message_interactions.New(client, message_interactions.ClientProperties{
ParticipantSid: properties.Sid,
ServiceSid: properties.ServiceSid,
SessionSid: properties.SessionSid,
}),
}
}