-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcall.go
154 lines (117 loc) · 7.2 KB
/
call.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
package getstream
import "context"
type Call struct {
callType string
callID string
client *VideoClient
}
func NewCall(callType string, callID string, client *VideoClient) *Call {
return &Call{
callType: callType,
callID: callID,
client: client,
}
}
func (c *Call) Get(ctx context.Context, request *GetCallRequest) (*StreamResponse[GetCallResponse], error) {
return c.client.GetCall(ctx, c.callType, c.callID, request)
}
func (c *Call) Update(ctx context.Context, request *UpdateCallRequest) (*StreamResponse[UpdateCallResponse], error) {
return c.client.UpdateCall(ctx, c.callType, c.callID, request)
}
func (c *Call) GetOrCreate(ctx context.Context, request *GetOrCreateCallRequest) (*StreamResponse[GetOrCreateCallResponse], error) {
return c.client.GetOrCreateCall(ctx, c.callType, c.callID, request)
}
func (c *Call) BlockUser(ctx context.Context, request *BlockUserRequest) (*StreamResponse[BlockUserResponse], error) {
return c.client.BlockUser(ctx, c.callType, c.callID, request)
}
func (c *Call) Delete(ctx context.Context, request *DeleteCallRequest) (*StreamResponse[DeleteCallResponse], error) {
return c.client.DeleteCall(ctx, c.callType, c.callID, request)
}
func (c *Call) SendCallEvent(ctx context.Context, request *SendCallEventRequest) (*StreamResponse[SendCallEventResponse], error) {
return c.client.SendCallEvent(ctx, c.callType, c.callID, request)
}
func (c *Call) CollectUserFeedback(ctx context.Context, session string, request *CollectUserFeedbackRequest) (*StreamResponse[CollectUserFeedbackResponse], error) {
return c.client.CollectUserFeedback(ctx, c.callType, c.callID, session, request)
}
func (c *Call) GoLive(ctx context.Context, request *GoLiveRequest) (*StreamResponse[GoLiveResponse], error) {
return c.client.GoLive(ctx, c.callType, c.callID, request)
}
func (c *Call) End(ctx context.Context, request *EndCallRequest) (*StreamResponse[EndCallResponse], error) {
return c.client.EndCall(ctx, c.callType, c.callID, request)
}
func (c *Call) UpdateCallMembers(ctx context.Context, request *UpdateCallMembersRequest) (*StreamResponse[UpdateCallMembersResponse], error) {
return c.client.UpdateCallMembers(ctx, c.callType, c.callID, request)
}
func (c *Call) MuteUsers(ctx context.Context, request *MuteUsersRequest) (*StreamResponse[MuteUsersResponse], error) {
return c.client.MuteUsers(ctx, c.callType, c.callID, request)
}
func (c *Call) VideoPin(ctx context.Context, request *VideoPinRequest) (*StreamResponse[PinResponse], error) {
return c.client.VideoPin(ctx, c.callType, c.callID, request)
}
func (c *Call) ListRecordings(ctx context.Context, request *ListRecordingsRequest) (*StreamResponse[ListRecordingsResponse], error) {
return c.client.ListRecordings(ctx, c.callType, c.callID, request)
}
func (c *Call) GetCallReport(ctx context.Context, request *GetCallReportRequest) (*StreamResponse[GetCallReportResponse], error) {
return c.client.GetCallReport(ctx, c.callType, c.callID, request)
}
func (c *Call) StartRTMPBroadcasts(ctx context.Context, request *StartRTMPBroadcastsRequest) (*StreamResponse[StartRTMPBroadcastsResponse], error) {
return c.client.StartRTMPBroadcasts(ctx, c.callType, c.callID, request)
}
func (c *Call) StopAllRTMPBroadcasts(ctx context.Context, request *StopAllRTMPBroadcastsRequest) (*StreamResponse[StopAllRTMPBroadcastsResponse], error) {
return c.client.StopAllRTMPBroadcasts(ctx, c.callType, c.callID, request)
}
func (c *Call) StopRTMPBroadcast(ctx context.Context, name string, request *StopRTMPBroadcastRequest) (*StreamResponse[StopRTMPBroadcastsResponse], error) {
return c.client.StopRTMPBroadcast(ctx, c.callType, c.callID, name, request)
}
func (c *Call) StartHLSBroadcasting(ctx context.Context, request *StartHLSBroadcastingRequest) (*StreamResponse[StartHLSBroadcastingResponse], error) {
return c.client.StartHLSBroadcasting(ctx, c.callType, c.callID, request)
}
func (c *Call) StartClosedCaptions(ctx context.Context, request *StartClosedCaptionsRequest) (*StreamResponse[StartClosedCaptionsResponse], error) {
return c.client.StartClosedCaptions(ctx, c.callType, c.callID, request)
}
func (c *Call) StartRecording(ctx context.Context, request *StartRecordingRequest) (*StreamResponse[StartRecordingResponse], error) {
return c.client.StartRecording(ctx, c.callType, c.callID, request)
}
func (c *Call) StartTranscription(ctx context.Context, request *StartTranscriptionRequest) (*StreamResponse[StartTranscriptionResponse], error) {
return c.client.StartTranscription(ctx, c.callType, c.callID, request)
}
func (c *Call) GetCallStats(ctx context.Context, session string, request *GetCallStatsRequest) (*StreamResponse[GetCallStatsResponse], error) {
return c.client.GetCallStats(ctx, c.callType, c.callID, session, request)
}
func (c *Call) StopHLSBroadcasting(ctx context.Context, request *StopHLSBroadcastingRequest) (*StreamResponse[StopHLSBroadcastingResponse], error) {
return c.client.StopHLSBroadcasting(ctx, c.callType, c.callID, request)
}
func (c *Call) StopClosedCaptions(ctx context.Context, request *StopClosedCaptionsRequest) (*StreamResponse[StopClosedCaptionsResponse], error) {
return c.client.StopClosedCaptions(ctx, c.callType, c.callID, request)
}
func (c *Call) StopLive(ctx context.Context, request *StopLiveRequest) (*StreamResponse[StopLiveResponse], error) {
return c.client.StopLive(ctx, c.callType, c.callID, request)
}
func (c *Call) StopRecording(ctx context.Context, request *StopRecordingRequest) (*StreamResponse[StopRecordingResponse], error) {
return c.client.StopRecording(ctx, c.callType, c.callID, request)
}
func (c *Call) StopTranscription(ctx context.Context, request *StopTranscriptionRequest) (*StreamResponse[StopTranscriptionResponse], error) {
return c.client.StopTranscription(ctx, c.callType, c.callID, request)
}
func (c *Call) ListTranscriptions(ctx context.Context, request *ListTranscriptionsRequest) (*StreamResponse[ListTranscriptionsResponse], error) {
return c.client.ListTranscriptions(ctx, c.callType, c.callID, request)
}
func (c *Call) UnblockUser(ctx context.Context, request *UnblockUserRequest) (*StreamResponse[UnblockUserResponse], error) {
return c.client.UnblockUser(ctx, c.callType, c.callID, request)
}
func (c *Call) VideoUnpin(ctx context.Context, request *VideoUnpinRequest) (*StreamResponse[UnpinResponse], error) {
return c.client.VideoUnpin(ctx, c.callType, c.callID, request)
}
func (c *Call) UpdateUserPermissions(ctx context.Context, request *UpdateUserPermissionsRequest) (*StreamResponse[UpdateUserPermissionsResponse], error) {
return c.client.UpdateUserPermissions(ctx, c.callType, c.callID, request)
}
func (c *Call) DeleteRecording(ctx context.Context, session string, filename string, request *DeleteRecordingRequest) (*StreamResponse[DeleteRecordingResponse], error) {
return c.client.DeleteRecording(ctx, c.callType, c.callID, session, filename, request)
}
func (c *Call) DeleteTranscription(ctx context.Context, session string, filename string, request *DeleteTranscriptionRequest) (*StreamResponse[DeleteTranscriptionResponse], error) {
return c.client.DeleteTranscription(ctx, c.callType, c.callID, session, filename, request)
}
func (c *VideoClient) Call(callType, callID string) *Call {
return NewCall(callType, callID, c)
}