From c01d89b18d5c39a42df36bc1ac9d68bec8722214 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 30 Oct 2023 03:33:10 +0000 Subject: [PATCH] Generated 2016-11-01 for live. --- ChangeLog.txt | 4 + .../live/check_live_message_users_in_group.go | 103 ++++++++++++++++ .../live/check_live_message_users_online.go | 102 ++++++++++++++++ services/live/create_live_message_app.go | 106 ++++++++++++++++ services/live/create_live_message_group.go | 108 +++++++++++++++++ services/live/delete_live_message_group.go | 103 ++++++++++++++++ services/live/describe_live_message_app.go | 107 +++++++++++++++++ services/live/describe_live_message_group.go | 113 ++++++++++++++++++ .../live/describe_live_message_group_band.go | 105 ++++++++++++++++ services/live/kick_live_message_group_user.go | 102 ++++++++++++++++ services/live/list_live_message_apps.go | 104 ++++++++++++++++ .../live/list_live_message_group_messages.go | 111 +++++++++++++++++ .../live/list_live_message_group_users.go | 108 +++++++++++++++++ services/live/list_live_message_groups.go | 105 ++++++++++++++++ .../live/modify_live_message_app_audit.go | 107 +++++++++++++++++ .../live/modify_live_message_app_callback.go | 105 ++++++++++++++++ .../live/modify_live_message_app_disable.go | 104 ++++++++++++++++ services/live/modify_live_message_group.go | 105 ++++++++++++++++ .../live/modify_live_message_group_band.go | 104 ++++++++++++++++ .../live/modify_live_message_user_info.go | 102 ++++++++++++++++ services/live/send_live_message_group.go | 106 ++++++++++++++++ services/live/send_live_message_user.go | 106 ++++++++++++++++ ...min_list_in_describe_live_message_group.go | 21 ++++ ..._admin_list_in_list_live_message_groups.go | 21 ++++ ...ruct_app_list_in_list_live_message_apps.go | 21 ++++ services/live/struct_apps.go | 24 ++++ services/live/struct_banned_user_list.go | 21 ++++ ..._group_list_in_list_live_message_groups.go | 21 ++++ ...truct_group_list_in_list_message_group.go} | 4 +- services/live/struct_groups.go | 27 +++++ ...ist_in_list_live_message_group_messages.go | 21 ++++ ...=> struct_message_list_in_list_message.go} | 4 +- services/live/struct_messages.go | 27 +++++ services/live/struct_sender.go | 22 ++++ services/live/struct_unbanned_user_list.go | 21 ++++ ...list_in_check_live_message_users_online.go | 21 ++++ ...r_list_in_list_live_message_group_users.go | 21 ++++ services/live/struct_users.go | 23 ++++ ...rs_in_check_live_message_users_in_group.go | 21 ++++ services/live/struct_users_item.go | 22 ++++ 40 files changed, 2579 insertions(+), 4 deletions(-) create mode 100644 services/live/check_live_message_users_in_group.go create mode 100644 services/live/check_live_message_users_online.go create mode 100644 services/live/create_live_message_app.go create mode 100644 services/live/create_live_message_group.go create mode 100644 services/live/delete_live_message_group.go create mode 100644 services/live/describe_live_message_app.go create mode 100644 services/live/describe_live_message_group.go create mode 100644 services/live/describe_live_message_group_band.go create mode 100644 services/live/kick_live_message_group_user.go create mode 100644 services/live/list_live_message_apps.go create mode 100644 services/live/list_live_message_group_messages.go create mode 100644 services/live/list_live_message_group_users.go create mode 100644 services/live/list_live_message_groups.go create mode 100644 services/live/modify_live_message_app_audit.go create mode 100644 services/live/modify_live_message_app_callback.go create mode 100644 services/live/modify_live_message_app_disable.go create mode 100644 services/live/modify_live_message_group.go create mode 100644 services/live/modify_live_message_group_band.go create mode 100644 services/live/modify_live_message_user_info.go create mode 100644 services/live/send_live_message_group.go create mode 100644 services/live/send_live_message_user.go create mode 100644 services/live/struct_admin_list_in_describe_live_message_group.go create mode 100644 services/live/struct_admin_list_in_list_live_message_groups.go create mode 100644 services/live/struct_app_list_in_list_live_message_apps.go create mode 100644 services/live/struct_apps.go create mode 100644 services/live/struct_banned_user_list.go create mode 100644 services/live/struct_group_list_in_list_live_message_groups.go rename services/live/{struct_group_list.go => struct_group_list_in_list_message_group.go} (87%) create mode 100644 services/live/struct_groups.go create mode 100644 services/live/struct_message_list_in_list_live_message_group_messages.go rename services/live/{struct_message_list.go => struct_message_list_in_list_message.go} (88%) create mode 100644 services/live/struct_messages.go create mode 100644 services/live/struct_sender.go create mode 100644 services/live/struct_unbanned_user_list.go create mode 100644 services/live/struct_user_list_in_check_live_message_users_online.go create mode 100644 services/live/struct_user_list_in_list_live_message_group_users.go create mode 100644 services/live/struct_users.go create mode 100644 services/live/struct_users_in_check_live_message_users_in_group.go create mode 100644 services/live/struct_users_item.go diff --git a/ChangeLog.txt b/ChangeLog.txt index 3d80080430..3e680e2d4f 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2023-10-30 Version: v1.62.592 +- Generated 2016-11-01 for `live`. +- Update to support new apis. + 2023-10-26 Version: v1.62.591 - Generated 2019-03-15 for `fnf`. - 增加StartSyncExecution diff --git a/services/live/check_live_message_users_in_group.go b/services/live/check_live_message_users_in_group.go new file mode 100644 index 0000000000..656fdc3df0 --- /dev/null +++ b/services/live/check_live_message_users_in_group.go @@ -0,0 +1,103 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckLiveMessageUsersInGroup invokes the live.CheckLiveMessageUsersInGroup API synchronously +func (client *Client) CheckLiveMessageUsersInGroup(request *CheckLiveMessageUsersInGroupRequest) (response *CheckLiveMessageUsersInGroupResponse, err error) { + response = CreateCheckLiveMessageUsersInGroupResponse() + err = client.DoAction(request, response) + return +} + +// CheckLiveMessageUsersInGroupWithChan invokes the live.CheckLiveMessageUsersInGroup API asynchronously +func (client *Client) CheckLiveMessageUsersInGroupWithChan(request *CheckLiveMessageUsersInGroupRequest) (<-chan *CheckLiveMessageUsersInGroupResponse, <-chan error) { + responseChan := make(chan *CheckLiveMessageUsersInGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckLiveMessageUsersInGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckLiveMessageUsersInGroupWithCallback invokes the live.CheckLiveMessageUsersInGroup API asynchronously +func (client *Client) CheckLiveMessageUsersInGroupWithCallback(request *CheckLiveMessageUsersInGroupRequest, callback func(response *CheckLiveMessageUsersInGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckLiveMessageUsersInGroupResponse + var err error + defer close(result) + response, err = client.CheckLiveMessageUsersInGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckLiveMessageUsersInGroupRequest is the request struct for api CheckLiveMessageUsersInGroup +type CheckLiveMessageUsersInGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DataCenter string `position:"Query" name:"DataCenter"` + UserIds *[]string `position:"Query" name:"UserIds" type:"Repeated"` + AppId string `position:"Query" name:"AppId"` +} + +// CheckLiveMessageUsersInGroupResponse is the response struct for api CheckLiveMessageUsersInGroup +type CheckLiveMessageUsersInGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Users []UsersItem `json:"Users" xml:"Users"` +} + +// CreateCheckLiveMessageUsersInGroupRequest creates a request to invoke CheckLiveMessageUsersInGroup API +func CreateCheckLiveMessageUsersInGroupRequest() (request *CheckLiveMessageUsersInGroupRequest) { + request = &CheckLiveMessageUsersInGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "CheckLiveMessageUsersInGroup", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateCheckLiveMessageUsersInGroupResponse creates a response to parse from CheckLiveMessageUsersInGroup response +func CreateCheckLiveMessageUsersInGroupResponse() (response *CheckLiveMessageUsersInGroupResponse) { + response = &CheckLiveMessageUsersInGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/check_live_message_users_online.go b/services/live/check_live_message_users_online.go new file mode 100644 index 0000000000..7ac19750ff --- /dev/null +++ b/services/live/check_live_message_users_online.go @@ -0,0 +1,102 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckLiveMessageUsersOnline invokes the live.CheckLiveMessageUsersOnline API synchronously +func (client *Client) CheckLiveMessageUsersOnline(request *CheckLiveMessageUsersOnlineRequest) (response *CheckLiveMessageUsersOnlineResponse, err error) { + response = CreateCheckLiveMessageUsersOnlineResponse() + err = client.DoAction(request, response) + return +} + +// CheckLiveMessageUsersOnlineWithChan invokes the live.CheckLiveMessageUsersOnline API asynchronously +func (client *Client) CheckLiveMessageUsersOnlineWithChan(request *CheckLiveMessageUsersOnlineRequest) (<-chan *CheckLiveMessageUsersOnlineResponse, <-chan error) { + responseChan := make(chan *CheckLiveMessageUsersOnlineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckLiveMessageUsersOnline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckLiveMessageUsersOnlineWithCallback invokes the live.CheckLiveMessageUsersOnline API asynchronously +func (client *Client) CheckLiveMessageUsersOnlineWithCallback(request *CheckLiveMessageUsersOnlineRequest, callback func(response *CheckLiveMessageUsersOnlineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckLiveMessageUsersOnlineResponse + var err error + defer close(result) + response, err = client.CheckLiveMessageUsersOnline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckLiveMessageUsersOnlineRequest is the request struct for api CheckLiveMessageUsersOnline +type CheckLiveMessageUsersOnlineRequest struct { + *requests.RpcRequest + DataCenter string `position:"Query" name:"DataCenter"` + UserIds *[]string `position:"Query" name:"UserIds" type:"Repeated"` + AppId string `position:"Query" name:"AppId"` +} + +// CheckLiveMessageUsersOnlineResponse is the response struct for api CheckLiveMessageUsersOnline +type CheckLiveMessageUsersOnlineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + UserList []Users `json:"UserList" xml:"UserList"` +} + +// CreateCheckLiveMessageUsersOnlineRequest creates a request to invoke CheckLiveMessageUsersOnline API +func CreateCheckLiveMessageUsersOnlineRequest() (request *CheckLiveMessageUsersOnlineRequest) { + request = &CheckLiveMessageUsersOnlineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "CheckLiveMessageUsersOnline", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateCheckLiveMessageUsersOnlineResponse creates a response to parse from CheckLiveMessageUsersOnline response +func CreateCheckLiveMessageUsersOnlineResponse() (response *CheckLiveMessageUsersOnlineResponse) { + response = &CheckLiveMessageUsersOnlineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/create_live_message_app.go b/services/live/create_live_message_app.go new file mode 100644 index 0000000000..9db9186003 --- /dev/null +++ b/services/live/create_live_message_app.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLiveMessageApp invokes the live.CreateLiveMessageApp API synchronously +func (client *Client) CreateLiveMessageApp(request *CreateLiveMessageAppRequest) (response *CreateLiveMessageAppResponse, err error) { + response = CreateCreateLiveMessageAppResponse() + err = client.DoAction(request, response) + return +} + +// CreateLiveMessageAppWithChan invokes the live.CreateLiveMessageApp API asynchronously +func (client *Client) CreateLiveMessageAppWithChan(request *CreateLiveMessageAppRequest) (<-chan *CreateLiveMessageAppResponse, <-chan error) { + responseChan := make(chan *CreateLiveMessageAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLiveMessageApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLiveMessageAppWithCallback invokes the live.CreateLiveMessageApp API asynchronously +func (client *Client) CreateLiveMessageAppWithCallback(request *CreateLiveMessageAppRequest, callback func(response *CreateLiveMessageAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLiveMessageAppResponse + var err error + defer close(result) + response, err = client.CreateLiveMessageApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLiveMessageAppRequest is the request struct for api CreateLiveMessageApp +type CreateLiveMessageAppRequest struct { + *requests.RpcRequest + DataCenter string `position:"Query" name:"DataCenter"` + AppName string `position:"Query" name:"AppName"` + AuditType requests.Integer `position:"Query" name:"AuditType"` + AuditUrl string `position:"Query" name:"AuditUrl"` + EventCallbackUrl string `position:"Query" name:"EventCallbackUrl"` +} + +// CreateLiveMessageAppResponse is the response struct for api CreateLiveMessageApp +type CreateLiveMessageAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppId string `json:"AppId" xml:"AppId"` + AppKey string `json:"AppKey" xml:"AppKey"` + AppSign string `json:"AppSign" xml:"AppSign"` +} + +// CreateCreateLiveMessageAppRequest creates a request to invoke CreateLiveMessageApp API +func CreateCreateLiveMessageAppRequest() (request *CreateLiveMessageAppRequest) { + request = &CreateLiveMessageAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "CreateLiveMessageApp", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateLiveMessageAppResponse creates a response to parse from CreateLiveMessageApp response +func CreateCreateLiveMessageAppResponse() (response *CreateLiveMessageAppResponse) { + response = &CreateLiveMessageAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/create_live_message_group.go b/services/live/create_live_message_group.go new file mode 100644 index 0000000000..921df10880 --- /dev/null +++ b/services/live/create_live_message_group.go @@ -0,0 +1,108 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateLiveMessageGroup invokes the live.CreateLiveMessageGroup API synchronously +func (client *Client) CreateLiveMessageGroup(request *CreateLiveMessageGroupRequest) (response *CreateLiveMessageGroupResponse, err error) { + response = CreateCreateLiveMessageGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateLiveMessageGroupWithChan invokes the live.CreateLiveMessageGroup API asynchronously +func (client *Client) CreateLiveMessageGroupWithChan(request *CreateLiveMessageGroupRequest) (<-chan *CreateLiveMessageGroupResponse, <-chan error) { + responseChan := make(chan *CreateLiveMessageGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateLiveMessageGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateLiveMessageGroupWithCallback invokes the live.CreateLiveMessageGroup API asynchronously +func (client *Client) CreateLiveMessageGroupWithCallback(request *CreateLiveMessageGroupRequest, callback func(response *CreateLiveMessageGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateLiveMessageGroupResponse + var err error + defer close(result) + response, err = client.CreateLiveMessageGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateLiveMessageGroupRequest is the request struct for api CreateLiveMessageGroup +type CreateLiveMessageGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + GroupInfo string `position:"Query" name:"GroupInfo"` + CreatorId string `position:"Query" name:"CreatorId"` + DataCenter string `position:"Query" name:"DataCenter"` + GroupName string `position:"Query" name:"GroupName"` + AppId string `position:"Query" name:"AppId"` + Administrators *[]string `position:"Query" name:"Administrators" type:"Repeated"` +} + +// CreateLiveMessageGroupResponse is the response struct for api CreateLiveMessageGroup +type CreateLiveMessageGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + AlreadyExists bool `json:"AlreadyExists" xml:"AlreadyExists"` + AlreadyDelete bool `json:"AlreadyDelete" xml:"AlreadyDelete"` +} + +// CreateCreateLiveMessageGroupRequest creates a request to invoke CreateLiveMessageGroup API +func CreateCreateLiveMessageGroupRequest() (request *CreateLiveMessageGroupRequest) { + request = &CreateLiveMessageGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "CreateLiveMessageGroup", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateLiveMessageGroupResponse creates a response to parse from CreateLiveMessageGroup response +func CreateCreateLiveMessageGroupResponse() (response *CreateLiveMessageGroupResponse) { + response = &CreateLiveMessageGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/delete_live_message_group.go b/services/live/delete_live_message_group.go new file mode 100644 index 0000000000..facb448fcd --- /dev/null +++ b/services/live/delete_live_message_group.go @@ -0,0 +1,103 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteLiveMessageGroup invokes the live.DeleteLiveMessageGroup API synchronously +func (client *Client) DeleteLiveMessageGroup(request *DeleteLiveMessageGroupRequest) (response *DeleteLiveMessageGroupResponse, err error) { + response = CreateDeleteLiveMessageGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveMessageGroupWithChan invokes the live.DeleteLiveMessageGroup API asynchronously +func (client *Client) DeleteLiveMessageGroupWithChan(request *DeleteLiveMessageGroupRequest) (<-chan *DeleteLiveMessageGroupResponse, <-chan error) { + responseChan := make(chan *DeleteLiveMessageGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveMessageGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveMessageGroupWithCallback invokes the live.DeleteLiveMessageGroup API asynchronously +func (client *Client) DeleteLiveMessageGroupWithCallback(request *DeleteLiveMessageGroupRequest, callback func(response *DeleteLiveMessageGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveMessageGroupResponse + var err error + defer close(result) + response, err = client.DeleteLiveMessageGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveMessageGroupRequest is the request struct for api DeleteLiveMessageGroup +type DeleteLiveMessageGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` + OperatorId string `position:"Query" name:"OperatorId"` +} + +// DeleteLiveMessageGroupResponse is the response struct for api DeleteLiveMessageGroup +type DeleteLiveMessageGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` +} + +// CreateDeleteLiveMessageGroupRequest creates a request to invoke DeleteLiveMessageGroup API +func CreateDeleteLiveMessageGroupRequest() (request *DeleteLiveMessageGroupRequest) { + request = &DeleteLiveMessageGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveMessageGroup", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteLiveMessageGroupResponse creates a response to parse from DeleteLiveMessageGroup response +func CreateDeleteLiveMessageGroupResponse() (response *DeleteLiveMessageGroupResponse) { + response = &DeleteLiveMessageGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_message_app.go b/services/live/describe_live_message_app.go new file mode 100644 index 0000000000..3b4a403d7d --- /dev/null +++ b/services/live/describe_live_message_app.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveMessageApp invokes the live.DescribeLiveMessageApp API synchronously +func (client *Client) DescribeLiveMessageApp(request *DescribeLiveMessageAppRequest) (response *DescribeLiveMessageAppResponse, err error) { + response = CreateDescribeLiveMessageAppResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveMessageAppWithChan invokes the live.DescribeLiveMessageApp API asynchronously +func (client *Client) DescribeLiveMessageAppWithChan(request *DescribeLiveMessageAppRequest) (<-chan *DescribeLiveMessageAppResponse, <-chan error) { + responseChan := make(chan *DescribeLiveMessageAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveMessageApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveMessageAppWithCallback invokes the live.DescribeLiveMessageApp API asynchronously +func (client *Client) DescribeLiveMessageAppWithCallback(request *DescribeLiveMessageAppRequest, callback func(response *DescribeLiveMessageAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveMessageAppResponse + var err error + defer close(result) + response, err = client.DescribeLiveMessageApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveMessageAppRequest is the request struct for api DescribeLiveMessageApp +type DescribeLiveMessageAppRequest struct { + *requests.RpcRequest + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` +} + +// DescribeLiveMessageAppResponse is the response struct for api DescribeLiveMessageApp +type DescribeLiveMessageAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppId string `json:"AppId" xml:"AppId"` + AppKey string `json:"AppKey" xml:"AppKey"` + AppSign string `json:"AppSign" xml:"AppSign"` + AuditType int `json:"AuditType" xml:"AuditType"` + AuditUrl string `json:"AuditUrl" xml:"AuditUrl"` + CallbackUrl string `json:"CallbackUrl" xml:"CallbackUrl"` + Disable bool `json:"Disable" xml:"Disable"` +} + +// CreateDescribeLiveMessageAppRequest creates a request to invoke DescribeLiveMessageApp API +func CreateDescribeLiveMessageAppRequest() (request *DescribeLiveMessageAppRequest) { + request = &DescribeLiveMessageAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveMessageApp", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeLiveMessageAppResponse creates a response to parse from DescribeLiveMessageApp response +func CreateDescribeLiveMessageAppResponse() (response *DescribeLiveMessageAppResponse) { + response = &DescribeLiveMessageAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_message_group.go b/services/live/describe_live_message_group.go new file mode 100644 index 0000000000..e7873e5b36 --- /dev/null +++ b/services/live/describe_live_message_group.go @@ -0,0 +1,113 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveMessageGroup invokes the live.DescribeLiveMessageGroup API synchronously +func (client *Client) DescribeLiveMessageGroup(request *DescribeLiveMessageGroupRequest) (response *DescribeLiveMessageGroupResponse, err error) { + response = CreateDescribeLiveMessageGroupResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveMessageGroupWithChan invokes the live.DescribeLiveMessageGroup API asynchronously +func (client *Client) DescribeLiveMessageGroupWithChan(request *DescribeLiveMessageGroupRequest) (<-chan *DescribeLiveMessageGroupResponse, <-chan error) { + responseChan := make(chan *DescribeLiveMessageGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveMessageGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveMessageGroupWithCallback invokes the live.DescribeLiveMessageGroup API asynchronously +func (client *Client) DescribeLiveMessageGroupWithCallback(request *DescribeLiveMessageGroupRequest, callback func(response *DescribeLiveMessageGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveMessageGroupResponse + var err error + defer close(result) + response, err = client.DescribeLiveMessageGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveMessageGroupRequest is the request struct for api DescribeLiveMessageGroup +type DescribeLiveMessageGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` +} + +// DescribeLiveMessageGroupResponse is the response struct for api DescribeLiveMessageGroup +type DescribeLiveMessageGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + CreatorId string `json:"CreatorId" xml:"CreatorId"` + Createtime int64 `json:"Createtime" xml:"Createtime"` + GroupName string `json:"GroupName" xml:"GroupName"` + GroupInfo string `json:"GroupInfo" xml:"GroupInfo"` + Delete bool `json:"Delete" xml:"Delete"` + TotalTimes int64 `json:"TotalTimes" xml:"TotalTimes"` + OnlineUserCounts int64 `json:"OnlineUserCounts" xml:"OnlineUserCounts"` + MsgAmount map[string]interface{} `json:"MsgAmount" xml:"MsgAmount"` + Deletatime int64 `json:"Deletatime" xml:"Deletatime"` + Deletor string `json:"Deletor" xml:"Deletor"` + AdminList []string `json:"AdminList" xml:"AdminList"` +} + +// CreateDescribeLiveMessageGroupRequest creates a request to invoke DescribeLiveMessageGroup API +func CreateDescribeLiveMessageGroupRequest() (request *DescribeLiveMessageGroupRequest) { + request = &DescribeLiveMessageGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveMessageGroup", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeLiveMessageGroupResponse creates a response to parse from DescribeLiveMessageGroup response +func CreateDescribeLiveMessageGroupResponse() (response *DescribeLiveMessageGroupResponse) { + response = &DescribeLiveMessageGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_message_group_band.go b/services/live/describe_live_message_group_band.go new file mode 100644 index 0000000000..47d1f765f9 --- /dev/null +++ b/services/live/describe_live_message_group_band.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLiveMessageGroupBand invokes the live.DescribeLiveMessageGroupBand API synchronously +func (client *Client) DescribeLiveMessageGroupBand(request *DescribeLiveMessageGroupBandRequest) (response *DescribeLiveMessageGroupBandResponse, err error) { + response = CreateDescribeLiveMessageGroupBandResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveMessageGroupBandWithChan invokes the live.DescribeLiveMessageGroupBand API asynchronously +func (client *Client) DescribeLiveMessageGroupBandWithChan(request *DescribeLiveMessageGroupBandRequest) (<-chan *DescribeLiveMessageGroupBandResponse, <-chan error) { + responseChan := make(chan *DescribeLiveMessageGroupBandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveMessageGroupBand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveMessageGroupBandWithCallback invokes the live.DescribeLiveMessageGroupBand API asynchronously +func (client *Client) DescribeLiveMessageGroupBandWithCallback(request *DescribeLiveMessageGroupBandRequest, callback func(response *DescribeLiveMessageGroupBandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveMessageGroupBandResponse + var err error + defer close(result) + response, err = client.DescribeLiveMessageGroupBand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveMessageGroupBandRequest is the request struct for api DescribeLiveMessageGroupBand +type DescribeLiveMessageGroupBandRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` +} + +// DescribeLiveMessageGroupBandResponse is the response struct for api DescribeLiveMessageGroupBand +type DescribeLiveMessageGroupBandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + IsbannedAll bool `json:"IsbannedAll" xml:"IsbannedAll"` + BannedUserList []string `json:"BannedUserList" xml:"BannedUserList"` + UnbannedUserList []string `json:"UnbannedUserList" xml:"UnbannedUserList"` +} + +// CreateDescribeLiveMessageGroupBandRequest creates a request to invoke DescribeLiveMessageGroupBand API +func CreateDescribeLiveMessageGroupBandRequest() (request *DescribeLiveMessageGroupBandRequest) { + request = &DescribeLiveMessageGroupBandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveMessageGroupBand", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeLiveMessageGroupBandResponse creates a response to parse from DescribeLiveMessageGroupBand response +func CreateDescribeLiveMessageGroupBandResponse() (response *DescribeLiveMessageGroupBandResponse) { + response = &DescribeLiveMessageGroupBandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/kick_live_message_group_user.go b/services/live/kick_live_message_group_user.go new file mode 100644 index 0000000000..86e01c7333 --- /dev/null +++ b/services/live/kick_live_message_group_user.go @@ -0,0 +1,102 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// KickLiveMessageGroupUser invokes the live.KickLiveMessageGroupUser API synchronously +func (client *Client) KickLiveMessageGroupUser(request *KickLiveMessageGroupUserRequest) (response *KickLiveMessageGroupUserResponse, err error) { + response = CreateKickLiveMessageGroupUserResponse() + err = client.DoAction(request, response) + return +} + +// KickLiveMessageGroupUserWithChan invokes the live.KickLiveMessageGroupUser API asynchronously +func (client *Client) KickLiveMessageGroupUserWithChan(request *KickLiveMessageGroupUserRequest) (<-chan *KickLiveMessageGroupUserResponse, <-chan error) { + responseChan := make(chan *KickLiveMessageGroupUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.KickLiveMessageGroupUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// KickLiveMessageGroupUserWithCallback invokes the live.KickLiveMessageGroupUser API asynchronously +func (client *Client) KickLiveMessageGroupUserWithCallback(request *KickLiveMessageGroupUserRequest, callback func(response *KickLiveMessageGroupUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *KickLiveMessageGroupUserResponse + var err error + defer close(result) + response, err = client.KickLiveMessageGroupUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// KickLiveMessageGroupUserRequest is the request struct for api KickLiveMessageGroupUser +type KickLiveMessageGroupUserRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DataCenter string `position:"Query" name:"DataCenter"` + KickoffUser string `position:"Query" name:"KickoffUser"` + AppId string `position:"Query" name:"AppId"` +} + +// KickLiveMessageGroupUserResponse is the response struct for api KickLiveMessageGroupUser +type KickLiveMessageGroupUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateKickLiveMessageGroupUserRequest creates a request to invoke KickLiveMessageGroupUser API +func CreateKickLiveMessageGroupUserRequest() (request *KickLiveMessageGroupUserRequest) { + request = &KickLiveMessageGroupUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "KickLiveMessageGroupUser", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateKickLiveMessageGroupUserResponse creates a response to parse from KickLiveMessageGroupUser response +func CreateKickLiveMessageGroupUserResponse() (response *KickLiveMessageGroupUserResponse) { + response = &KickLiveMessageGroupUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/list_live_message_apps.go b/services/live/list_live_message_apps.go new file mode 100644 index 0000000000..9104513230 --- /dev/null +++ b/services/live/list_live_message_apps.go @@ -0,0 +1,104 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListLiveMessageApps invokes the live.ListLiveMessageApps API synchronously +func (client *Client) ListLiveMessageApps(request *ListLiveMessageAppsRequest) (response *ListLiveMessageAppsResponse, err error) { + response = CreateListLiveMessageAppsResponse() + err = client.DoAction(request, response) + return +} + +// ListLiveMessageAppsWithChan invokes the live.ListLiveMessageApps API asynchronously +func (client *Client) ListLiveMessageAppsWithChan(request *ListLiveMessageAppsRequest) (<-chan *ListLiveMessageAppsResponse, <-chan error) { + responseChan := make(chan *ListLiveMessageAppsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListLiveMessageApps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListLiveMessageAppsWithCallback invokes the live.ListLiveMessageApps API asynchronously +func (client *Client) ListLiveMessageAppsWithCallback(request *ListLiveMessageAppsRequest, callback func(response *ListLiveMessageAppsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListLiveMessageAppsResponse + var err error + defer close(result) + response, err = client.ListLiveMessageApps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListLiveMessageAppsRequest is the request struct for api ListLiveMessageApps +type ListLiveMessageAppsRequest struct { + *requests.RpcRequest + SortType requests.Integer `position:"Query" name:"SortType"` + NextPageToken requests.Integer `position:"Query" name:"NextPageToken"` + DataCenter string `position:"Query" name:"DataCenter"` +} + +// ListLiveMessageAppsResponse is the response struct for api ListLiveMessageApps +type ListLiveMessageAppsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HasMore bool `json:"HasMore" xml:"HasMore"` + NextPageToken int64 `json:"NextPageToken" xml:"NextPageToken"` + AppList []Apps `json:"AppList" xml:"AppList"` +} + +// CreateListLiveMessageAppsRequest creates a request to invoke ListLiveMessageApps API +func CreateListLiveMessageAppsRequest() (request *ListLiveMessageAppsRequest) { + request = &ListLiveMessageAppsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ListLiveMessageApps", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateListLiveMessageAppsResponse creates a response to parse from ListLiveMessageApps response +func CreateListLiveMessageAppsResponse() (response *ListLiveMessageAppsResponse) { + response = &ListLiveMessageAppsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/list_live_message_group_messages.go b/services/live/list_live_message_group_messages.go new file mode 100644 index 0000000000..095ec43e22 --- /dev/null +++ b/services/live/list_live_message_group_messages.go @@ -0,0 +1,111 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListLiveMessageGroupMessages invokes the live.ListLiveMessageGroupMessages API synchronously +func (client *Client) ListLiveMessageGroupMessages(request *ListLiveMessageGroupMessagesRequest) (response *ListLiveMessageGroupMessagesResponse, err error) { + response = CreateListLiveMessageGroupMessagesResponse() + err = client.DoAction(request, response) + return +} + +// ListLiveMessageGroupMessagesWithChan invokes the live.ListLiveMessageGroupMessages API asynchronously +func (client *Client) ListLiveMessageGroupMessagesWithChan(request *ListLiveMessageGroupMessagesRequest) (<-chan *ListLiveMessageGroupMessagesResponse, <-chan error) { + responseChan := make(chan *ListLiveMessageGroupMessagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListLiveMessageGroupMessages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListLiveMessageGroupMessagesWithCallback invokes the live.ListLiveMessageGroupMessages API asynchronously +func (client *Client) ListLiveMessageGroupMessagesWithCallback(request *ListLiveMessageGroupMessagesRequest, callback func(response *ListLiveMessageGroupMessagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListLiveMessageGroupMessagesResponse + var err error + defer close(result) + response, err = client.ListLiveMessageGroupMessages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListLiveMessageGroupMessagesRequest is the request struct for api ListLiveMessageGroupMessages +type ListLiveMessageGroupMessagesRequest struct { + *requests.RpcRequest + SortType requests.Integer `position:"Query" name:"SortType"` + NextPageToken requests.Integer `position:"Query" name:"NextPageToken"` + GroupId string `position:"Query" name:"GroupId"` + EndTime requests.Integer `position:"Query" name:"EndTime"` + BeginTime requests.Integer `position:"Query" name:"BeginTime"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + MsgType requests.Integer `position:"Query" name:"MsgType"` +} + +// ListLiveMessageGroupMessagesResponse is the response struct for api ListLiveMessageGroupMessages +type ListLiveMessageGroupMessagesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + NextPageToken int64 `json:"NextPageToken" xml:"NextPageToken"` + Hasmore bool `json:"Hasmore" xml:"Hasmore"` + MessageList []Messages `json:"MessageList" xml:"MessageList"` +} + +// CreateListLiveMessageGroupMessagesRequest creates a request to invoke ListLiveMessageGroupMessages API +func CreateListLiveMessageGroupMessagesRequest() (request *ListLiveMessageGroupMessagesRequest) { + request = &ListLiveMessageGroupMessagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ListLiveMessageGroupMessages", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateListLiveMessageGroupMessagesResponse creates a response to parse from ListLiveMessageGroupMessages response +func CreateListLiveMessageGroupMessagesResponse() (response *ListLiveMessageGroupMessagesResponse) { + response = &ListLiveMessageGroupMessagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/list_live_message_group_users.go b/services/live/list_live_message_group_users.go new file mode 100644 index 0000000000..a68ae5baa5 --- /dev/null +++ b/services/live/list_live_message_group_users.go @@ -0,0 +1,108 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListLiveMessageGroupUsers invokes the live.ListLiveMessageGroupUsers API synchronously +func (client *Client) ListLiveMessageGroupUsers(request *ListLiveMessageGroupUsersRequest) (response *ListLiveMessageGroupUsersResponse, err error) { + response = CreateListLiveMessageGroupUsersResponse() + err = client.DoAction(request, response) + return +} + +// ListLiveMessageGroupUsersWithChan invokes the live.ListLiveMessageGroupUsers API asynchronously +func (client *Client) ListLiveMessageGroupUsersWithChan(request *ListLiveMessageGroupUsersRequest) (<-chan *ListLiveMessageGroupUsersResponse, <-chan error) { + responseChan := make(chan *ListLiveMessageGroupUsersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListLiveMessageGroupUsers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListLiveMessageGroupUsersWithCallback invokes the live.ListLiveMessageGroupUsers API asynchronously +func (client *Client) ListLiveMessageGroupUsersWithCallback(request *ListLiveMessageGroupUsersRequest, callback func(response *ListLiveMessageGroupUsersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListLiveMessageGroupUsersResponse + var err error + defer close(result) + response, err = client.ListLiveMessageGroupUsers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListLiveMessageGroupUsersRequest is the request struct for api ListLiveMessageGroupUsers +type ListLiveMessageGroupUsersRequest struct { + *requests.RpcRequest + SortType requests.Integer `position:"Query" name:"SortType"` + NextPageToken requests.Integer `position:"Query" name:"NextPageToken"` + GroupId string `position:"Query" name:"GroupId"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListLiveMessageGroupUsersResponse is the response struct for api ListLiveMessageGroupUsers +type ListLiveMessageGroupUsersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GroupId string `json:"GroupId" xml:"GroupId"` + NextPageToken int64 `json:"NextPageToken" xml:"NextPageToken"` + Hasmore bool `json:"Hasmore" xml:"Hasmore"` + UserList []Users `json:"UserList" xml:"UserList"` +} + +// CreateListLiveMessageGroupUsersRequest creates a request to invoke ListLiveMessageGroupUsers API +func CreateListLiveMessageGroupUsersRequest() (request *ListLiveMessageGroupUsersRequest) { + request = &ListLiveMessageGroupUsersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ListLiveMessageGroupUsers", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateListLiveMessageGroupUsersResponse creates a response to parse from ListLiveMessageGroupUsers response +func CreateListLiveMessageGroupUsersResponse() (response *ListLiveMessageGroupUsersResponse) { + response = &ListLiveMessageGroupUsersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/list_live_message_groups.go b/services/live/list_live_message_groups.go new file mode 100644 index 0000000000..b21cc1ec2b --- /dev/null +++ b/services/live/list_live_message_groups.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListLiveMessageGroups invokes the live.ListLiveMessageGroups API synchronously +func (client *Client) ListLiveMessageGroups(request *ListLiveMessageGroupsRequest) (response *ListLiveMessageGroupsResponse, err error) { + response = CreateListLiveMessageGroupsResponse() + err = client.DoAction(request, response) + return +} + +// ListLiveMessageGroupsWithChan invokes the live.ListLiveMessageGroups API asynchronously +func (client *Client) ListLiveMessageGroupsWithChan(request *ListLiveMessageGroupsRequest) (<-chan *ListLiveMessageGroupsResponse, <-chan error) { + responseChan := make(chan *ListLiveMessageGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListLiveMessageGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListLiveMessageGroupsWithCallback invokes the live.ListLiveMessageGroups API asynchronously +func (client *Client) ListLiveMessageGroupsWithCallback(request *ListLiveMessageGroupsRequest, callback func(response *ListLiveMessageGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListLiveMessageGroupsResponse + var err error + defer close(result) + response, err = client.ListLiveMessageGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListLiveMessageGroupsRequest is the request struct for api ListLiveMessageGroups +type ListLiveMessageGroupsRequest struct { + *requests.RpcRequest + SortType requests.Integer `position:"Query" name:"SortType"` + NextPageToken requests.Integer `position:"Query" name:"NextPageToken"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` +} + +// ListLiveMessageGroupsResponse is the response struct for api ListLiveMessageGroups +type ListLiveMessageGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Hasmore bool `json:"Hasmore" xml:"Hasmore"` + NextpageToken string `json:"NextpageToken" xml:"NextpageToken"` + GroupList []Groups `json:"GroupList" xml:"GroupList"` +} + +// CreateListLiveMessageGroupsRequest creates a request to invoke ListLiveMessageGroups API +func CreateListLiveMessageGroupsRequest() (request *ListLiveMessageGroupsRequest) { + request = &ListLiveMessageGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ListLiveMessageGroups", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateListLiveMessageGroupsResponse creates a response to parse from ListLiveMessageGroups response +func CreateListLiveMessageGroupsResponse() (response *ListLiveMessageGroupsResponse) { + response = &ListLiveMessageGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/modify_live_message_app_audit.go b/services/live/modify_live_message_app_audit.go new file mode 100644 index 0000000000..c63a0af5fb --- /dev/null +++ b/services/live/modify_live_message_app_audit.go @@ -0,0 +1,107 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLiveMessageAppAudit invokes the live.ModifyLiveMessageAppAudit API synchronously +func (client *Client) ModifyLiveMessageAppAudit(request *ModifyLiveMessageAppAuditRequest) (response *ModifyLiveMessageAppAuditResponse, err error) { + response = CreateModifyLiveMessageAppAuditResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLiveMessageAppAuditWithChan invokes the live.ModifyLiveMessageAppAudit API asynchronously +func (client *Client) ModifyLiveMessageAppAuditWithChan(request *ModifyLiveMessageAppAuditRequest) (<-chan *ModifyLiveMessageAppAuditResponse, <-chan error) { + responseChan := make(chan *ModifyLiveMessageAppAuditResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLiveMessageAppAudit(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLiveMessageAppAuditWithCallback invokes the live.ModifyLiveMessageAppAudit API asynchronously +func (client *Client) ModifyLiveMessageAppAuditWithCallback(request *ModifyLiveMessageAppAuditRequest, callback func(response *ModifyLiveMessageAppAuditResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLiveMessageAppAuditResponse + var err error + defer close(result) + response, err = client.ModifyLiveMessageAppAudit(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLiveMessageAppAuditRequest is the request struct for api ModifyLiveMessageAppAudit +type ModifyLiveMessageAppAuditRequest struct { + *requests.RpcRequest + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` + AuditType requests.Integer `position:"Query" name:"AuditType"` + AuditUrl string `position:"Query" name:"AuditUrl"` +} + +// ModifyLiveMessageAppAuditResponse is the response struct for api ModifyLiveMessageAppAudit +type ModifyLiveMessageAppAuditResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppId string `json:"AppId" xml:"AppId"` + AppSign string `json:"AppSign" xml:"AppSign"` + AuditType int `json:"AuditType" xml:"AuditType"` + AuditUrl string `json:"AuditUrl" xml:"AuditUrl"` + AuditNeedAuthentication bool `json:"AuditNeedAuthentication" xml:"AuditNeedAuthentication"` +} + +// CreateModifyLiveMessageAppAuditRequest creates a request to invoke ModifyLiveMessageAppAudit API +func CreateModifyLiveMessageAppAuditRequest() (request *ModifyLiveMessageAppAuditRequest) { + request = &ModifyLiveMessageAppAuditRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyLiveMessageAppAudit", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyLiveMessageAppAuditResponse creates a response to parse from ModifyLiveMessageAppAudit response +func CreateModifyLiveMessageAppAuditResponse() (response *ModifyLiveMessageAppAuditResponse) { + response = &ModifyLiveMessageAppAuditResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/modify_live_message_app_callback.go b/services/live/modify_live_message_app_callback.go new file mode 100644 index 0000000000..3355c365bc --- /dev/null +++ b/services/live/modify_live_message_app_callback.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLiveMessageAppCallback invokes the live.ModifyLiveMessageAppCallback API synchronously +func (client *Client) ModifyLiveMessageAppCallback(request *ModifyLiveMessageAppCallbackRequest) (response *ModifyLiveMessageAppCallbackResponse, err error) { + response = CreateModifyLiveMessageAppCallbackResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLiveMessageAppCallbackWithChan invokes the live.ModifyLiveMessageAppCallback API asynchronously +func (client *Client) ModifyLiveMessageAppCallbackWithChan(request *ModifyLiveMessageAppCallbackRequest) (<-chan *ModifyLiveMessageAppCallbackResponse, <-chan error) { + responseChan := make(chan *ModifyLiveMessageAppCallbackResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLiveMessageAppCallback(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLiveMessageAppCallbackWithCallback invokes the live.ModifyLiveMessageAppCallback API asynchronously +func (client *Client) ModifyLiveMessageAppCallbackWithCallback(request *ModifyLiveMessageAppCallbackRequest, callback func(response *ModifyLiveMessageAppCallbackResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLiveMessageAppCallbackResponse + var err error + defer close(result) + response, err = client.ModifyLiveMessageAppCallback(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLiveMessageAppCallbackRequest is the request struct for api ModifyLiveMessageAppCallback +type ModifyLiveMessageAppCallbackRequest struct { + *requests.RpcRequest + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` + EventCallbackUrl string `position:"Query" name:"EventCallbackUrl"` +} + +// ModifyLiveMessageAppCallbackResponse is the response struct for api ModifyLiveMessageAppCallback +type ModifyLiveMessageAppCallbackResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppId string `json:"AppId" xml:"AppId"` + AppSign string `json:"AppSign" xml:"AppSign"` + EventCallbackUrl string `json:"EventCallbackUrl" xml:"EventCallbackUrl"` + EventCallbackNeedAuthentication bool `json:"EventCallbackNeedAuthentication" xml:"EventCallbackNeedAuthentication"` +} + +// CreateModifyLiveMessageAppCallbackRequest creates a request to invoke ModifyLiveMessageAppCallback API +func CreateModifyLiveMessageAppCallbackRequest() (request *ModifyLiveMessageAppCallbackRequest) { + request = &ModifyLiveMessageAppCallbackRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyLiveMessageAppCallback", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyLiveMessageAppCallbackResponse creates a response to parse from ModifyLiveMessageAppCallback response +func CreateModifyLiveMessageAppCallbackResponse() (response *ModifyLiveMessageAppCallbackResponse) { + response = &ModifyLiveMessageAppCallbackResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/modify_live_message_app_disable.go b/services/live/modify_live_message_app_disable.go new file mode 100644 index 0000000000..9c2388568c --- /dev/null +++ b/services/live/modify_live_message_app_disable.go @@ -0,0 +1,104 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLiveMessageAppDisable invokes the live.ModifyLiveMessageAppDisable API synchronously +func (client *Client) ModifyLiveMessageAppDisable(request *ModifyLiveMessageAppDisableRequest) (response *ModifyLiveMessageAppDisableResponse, err error) { + response = CreateModifyLiveMessageAppDisableResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLiveMessageAppDisableWithChan invokes the live.ModifyLiveMessageAppDisable API asynchronously +func (client *Client) ModifyLiveMessageAppDisableWithChan(request *ModifyLiveMessageAppDisableRequest) (<-chan *ModifyLiveMessageAppDisableResponse, <-chan error) { + responseChan := make(chan *ModifyLiveMessageAppDisableResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLiveMessageAppDisable(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLiveMessageAppDisableWithCallback invokes the live.ModifyLiveMessageAppDisable API asynchronously +func (client *Client) ModifyLiveMessageAppDisableWithCallback(request *ModifyLiveMessageAppDisableRequest, callback func(response *ModifyLiveMessageAppDisableResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLiveMessageAppDisableResponse + var err error + defer close(result) + response, err = client.ModifyLiveMessageAppDisable(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLiveMessageAppDisableRequest is the request struct for api ModifyLiveMessageAppDisable +type ModifyLiveMessageAppDisableRequest struct { + *requests.RpcRequest + DataCenter string `position:"Query" name:"DataCenter"` + Disable requests.Boolean `position:"Query" name:"Disable"` + AppId string `position:"Query" name:"AppId"` +} + +// ModifyLiveMessageAppDisableResponse is the response struct for api ModifyLiveMessageAppDisable +type ModifyLiveMessageAppDisableResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AppId string `json:"AppId" xml:"AppId"` + AppSign string `json:"AppSign" xml:"AppSign"` + Disable bool `json:"Disable" xml:"Disable"` +} + +// CreateModifyLiveMessageAppDisableRequest creates a request to invoke ModifyLiveMessageAppDisable API +func CreateModifyLiveMessageAppDisableRequest() (request *ModifyLiveMessageAppDisableRequest) { + request = &ModifyLiveMessageAppDisableRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyLiveMessageAppDisable", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyLiveMessageAppDisableResponse creates a response to parse from ModifyLiveMessageAppDisable response +func CreateModifyLiveMessageAppDisableResponse() (response *ModifyLiveMessageAppDisableResponse) { + response = &ModifyLiveMessageAppDisableResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/modify_live_message_group.go b/services/live/modify_live_message_group.go new file mode 100644 index 0000000000..fe034bee73 --- /dev/null +++ b/services/live/modify_live_message_group.go @@ -0,0 +1,105 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLiveMessageGroup invokes the live.ModifyLiveMessageGroup API synchronously +func (client *Client) ModifyLiveMessageGroup(request *ModifyLiveMessageGroupRequest) (response *ModifyLiveMessageGroupResponse, err error) { + response = CreateModifyLiveMessageGroupResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLiveMessageGroupWithChan invokes the live.ModifyLiveMessageGroup API asynchronously +func (client *Client) ModifyLiveMessageGroupWithChan(request *ModifyLiveMessageGroupRequest) (<-chan *ModifyLiveMessageGroupResponse, <-chan error) { + responseChan := make(chan *ModifyLiveMessageGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLiveMessageGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLiveMessageGroupWithCallback invokes the live.ModifyLiveMessageGroup API asynchronously +func (client *Client) ModifyLiveMessageGroupWithCallback(request *ModifyLiveMessageGroupRequest, callback func(response *ModifyLiveMessageGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLiveMessageGroupResponse + var err error + defer close(result) + response, err = client.ModifyLiveMessageGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLiveMessageGroupRequest is the request struct for api ModifyLiveMessageGroup +type ModifyLiveMessageGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + GroupInfo string `position:"Query" name:"GroupInfo"` + DataCenter string `position:"Query" name:"DataCenter"` + ModifyInfo requests.Boolean `position:"Query" name:"ModifyInfo"` + AdminList *[]string `position:"Query" name:"AdminList" type:"Repeated"` + AppId string `position:"Query" name:"AppId"` + ModifyAdmin requests.Boolean `position:"Query" name:"ModifyAdmin"` +} + +// ModifyLiveMessageGroupResponse is the response struct for api ModifyLiveMessageGroup +type ModifyLiveMessageGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyLiveMessageGroupRequest creates a request to invoke ModifyLiveMessageGroup API +func CreateModifyLiveMessageGroupRequest() (request *ModifyLiveMessageGroupRequest) { + request = &ModifyLiveMessageGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyLiveMessageGroup", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyLiveMessageGroupResponse creates a response to parse from ModifyLiveMessageGroup response +func CreateModifyLiveMessageGroupResponse() (response *ModifyLiveMessageGroupResponse) { + response = &ModifyLiveMessageGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/modify_live_message_group_band.go b/services/live/modify_live_message_group_band.go new file mode 100644 index 0000000000..b984b157f9 --- /dev/null +++ b/services/live/modify_live_message_group_band.go @@ -0,0 +1,104 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLiveMessageGroupBand invokes the live.ModifyLiveMessageGroupBand API synchronously +func (client *Client) ModifyLiveMessageGroupBand(request *ModifyLiveMessageGroupBandRequest) (response *ModifyLiveMessageGroupBandResponse, err error) { + response = CreateModifyLiveMessageGroupBandResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLiveMessageGroupBandWithChan invokes the live.ModifyLiveMessageGroupBand API asynchronously +func (client *Client) ModifyLiveMessageGroupBandWithChan(request *ModifyLiveMessageGroupBandRequest) (<-chan *ModifyLiveMessageGroupBandResponse, <-chan error) { + responseChan := make(chan *ModifyLiveMessageGroupBandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLiveMessageGroupBand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLiveMessageGroupBandWithCallback invokes the live.ModifyLiveMessageGroupBand API asynchronously +func (client *Client) ModifyLiveMessageGroupBandWithCallback(request *ModifyLiveMessageGroupBandRequest, callback func(response *ModifyLiveMessageGroupBandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLiveMessageGroupBandResponse + var err error + defer close(result) + response, err = client.ModifyLiveMessageGroupBand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLiveMessageGroupBandRequest is the request struct for api ModifyLiveMessageGroupBand +type ModifyLiveMessageGroupBandRequest struct { + *requests.RpcRequest + BannedAll requests.Boolean `position:"Query" name:"BannedAll"` + GroupId string `position:"Query" name:"GroupId"` + ExceptUsers *[]string `position:"Query" name:"ExceptUsers" type:"Repeated"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` + BannnedUsers *[]string `position:"Query" name:"BannnedUsers" type:"Repeated"` +} + +// ModifyLiveMessageGroupBandResponse is the response struct for api ModifyLiveMessageGroupBand +type ModifyLiveMessageGroupBandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyLiveMessageGroupBandRequest creates a request to invoke ModifyLiveMessageGroupBand API +func CreateModifyLiveMessageGroupBandRequest() (request *ModifyLiveMessageGroupBandRequest) { + request = &ModifyLiveMessageGroupBandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyLiveMessageGroupBand", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyLiveMessageGroupBandResponse creates a response to parse from ModifyLiveMessageGroupBand response +func CreateModifyLiveMessageGroupBandResponse() (response *ModifyLiveMessageGroupBandResponse) { + response = &ModifyLiveMessageGroupBandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/modify_live_message_user_info.go b/services/live/modify_live_message_user_info.go new file mode 100644 index 0000000000..561ddfc978 --- /dev/null +++ b/services/live/modify_live_message_user_info.go @@ -0,0 +1,102 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLiveMessageUserInfo invokes the live.ModifyLiveMessageUserInfo API synchronously +func (client *Client) ModifyLiveMessageUserInfo(request *ModifyLiveMessageUserInfoRequest) (response *ModifyLiveMessageUserInfoResponse, err error) { + response = CreateModifyLiveMessageUserInfoResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLiveMessageUserInfoWithChan invokes the live.ModifyLiveMessageUserInfo API asynchronously +func (client *Client) ModifyLiveMessageUserInfoWithChan(request *ModifyLiveMessageUserInfoRequest) (<-chan *ModifyLiveMessageUserInfoResponse, <-chan error) { + responseChan := make(chan *ModifyLiveMessageUserInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLiveMessageUserInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLiveMessageUserInfoWithCallback invokes the live.ModifyLiveMessageUserInfo API asynchronously +func (client *Client) ModifyLiveMessageUserInfoWithCallback(request *ModifyLiveMessageUserInfoRequest, callback func(response *ModifyLiveMessageUserInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLiveMessageUserInfoResponse + var err error + defer close(result) + response, err = client.ModifyLiveMessageUserInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLiveMessageUserInfoRequest is the request struct for api ModifyLiveMessageUserInfo +type ModifyLiveMessageUserInfoRequest struct { + *requests.RpcRequest + DataCenter string `position:"Query" name:"DataCenter"` + UserId string `position:"Query" name:"UserId"` + UserMetaInfo string `position:"Query" name:"UserMetaInfo"` + AppId string `position:"Query" name:"AppId"` +} + +// ModifyLiveMessageUserInfoResponse is the response struct for api ModifyLiveMessageUserInfo +type ModifyLiveMessageUserInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyLiveMessageUserInfoRequest creates a request to invoke ModifyLiveMessageUserInfo API +func CreateModifyLiveMessageUserInfoRequest() (request *ModifyLiveMessageUserInfoRequest) { + request = &ModifyLiveMessageUserInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ModifyLiveMessageUserInfo", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyLiveMessageUserInfoResponse creates a response to parse from ModifyLiveMessageUserInfo response +func CreateModifyLiveMessageUserInfoResponse() (response *ModifyLiveMessageUserInfoResponse) { + response = &ModifyLiveMessageUserInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/send_live_message_group.go b/services/live/send_live_message_group.go new file mode 100644 index 0000000000..baeb2d00e8 --- /dev/null +++ b/services/live/send_live_message_group.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SendLiveMessageGroup invokes the live.SendLiveMessageGroup API synchronously +func (client *Client) SendLiveMessageGroup(request *SendLiveMessageGroupRequest) (response *SendLiveMessageGroupResponse, err error) { + response = CreateSendLiveMessageGroupResponse() + err = client.DoAction(request, response) + return +} + +// SendLiveMessageGroupWithChan invokes the live.SendLiveMessageGroup API asynchronously +func (client *Client) SendLiveMessageGroupWithChan(request *SendLiveMessageGroupRequest) (<-chan *SendLiveMessageGroupResponse, <-chan error) { + responseChan := make(chan *SendLiveMessageGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SendLiveMessageGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SendLiveMessageGroupWithCallback invokes the live.SendLiveMessageGroup API asynchronously +func (client *Client) SendLiveMessageGroupWithCallback(request *SendLiveMessageGroupRequest, callback func(response *SendLiveMessageGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SendLiveMessageGroupResponse + var err error + defer close(result) + response, err = client.SendLiveMessageGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SendLiveMessageGroupRequest is the request struct for api SendLiveMessageGroup +type SendLiveMessageGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + SenderMetaInfo string `position:"Query" name:"SenderMetaInfo"` + DataCenter string `position:"Query" name:"DataCenter"` + MsgTid string `position:"Query" name:"MsgTid"` + Body string `position:"Query" name:"Body"` + SenderId string `position:"Query" name:"SenderId"` + AppId string `position:"Query" name:"AppId"` + MsgType requests.Integer `position:"Query" name:"MsgType"` +} + +// SendLiveMessageGroupResponse is the response struct for api SendLiveMessageGroup +type SendLiveMessageGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSendLiveMessageGroupRequest creates a request to invoke SendLiveMessageGroup API +func CreateSendLiveMessageGroupRequest() (request *SendLiveMessageGroupRequest) { + request = &SendLiveMessageGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "SendLiveMessageGroup", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateSendLiveMessageGroupResponse creates a response to parse from SendLiveMessageGroup response +func CreateSendLiveMessageGroupResponse() (response *SendLiveMessageGroupResponse) { + response = &SendLiveMessageGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/send_live_message_user.go b/services/live/send_live_message_user.go new file mode 100644 index 0000000000..f89f55a24e --- /dev/null +++ b/services/live/send_live_message_user.go @@ -0,0 +1,106 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SendLiveMessageUser invokes the live.SendLiveMessageUser API synchronously +func (client *Client) SendLiveMessageUser(request *SendLiveMessageUserRequest) (response *SendLiveMessageUserResponse, err error) { + response = CreateSendLiveMessageUserResponse() + err = client.DoAction(request, response) + return +} + +// SendLiveMessageUserWithChan invokes the live.SendLiveMessageUser API asynchronously +func (client *Client) SendLiveMessageUserWithChan(request *SendLiveMessageUserRequest) (<-chan *SendLiveMessageUserResponse, <-chan error) { + responseChan := make(chan *SendLiveMessageUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SendLiveMessageUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SendLiveMessageUserWithCallback invokes the live.SendLiveMessageUser API asynchronously +func (client *Client) SendLiveMessageUserWithCallback(request *SendLiveMessageUserRequest, callback func(response *SendLiveMessageUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SendLiveMessageUserResponse + var err error + defer close(result) + response, err = client.SendLiveMessageUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SendLiveMessageUserRequest is the request struct for api SendLiveMessageUser +type SendLiveMessageUserRequest struct { + *requests.RpcRequest + DataCenter string `position:"Query" name:"DataCenter"` + MsgTid string `position:"Query" name:"MsgTid"` + Body string `position:"Query" name:"Body"` + SenderId string `position:"Query" name:"SenderId"` + ReceiverId string `position:"Query" name:"ReceiverId"` + AppId string `position:"Query" name:"AppId"` + SenderInfo string `position:"Query" name:"SenderInfo"` + MsgType requests.Integer `position:"Query" name:"MsgType"` +} + +// SendLiveMessageUserResponse is the response struct for api SendLiveMessageUser +type SendLiveMessageUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSendLiveMessageUserRequest creates a request to invoke SendLiveMessageUser API +func CreateSendLiveMessageUserRequest() (request *SendLiveMessageUserRequest) { + request = &SendLiveMessageUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "SendLiveMessageUser", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateSendLiveMessageUserResponse creates a response to parse from SendLiveMessageUser response +func CreateSendLiveMessageUserResponse() (response *SendLiveMessageUserResponse) { + response = &SendLiveMessageUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/struct_admin_list_in_describe_live_message_group.go b/services/live/struct_admin_list_in_describe_live_message_group.go new file mode 100644 index 0000000000..a37e474632 --- /dev/null +++ b/services/live/struct_admin_list_in_describe_live_message_group.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdminListInDescribeLiveMessageGroup is a nested struct in live response +type AdminListInDescribeLiveMessageGroup struct { + Admins []string `json:"Admins" xml:"Admins"` +} diff --git a/services/live/struct_admin_list_in_list_live_message_groups.go b/services/live/struct_admin_list_in_list_live_message_groups.go new file mode 100644 index 0000000000..3e4c315250 --- /dev/null +++ b/services/live/struct_admin_list_in_list_live_message_groups.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdminListInListLiveMessageGroups is a nested struct in live response +type AdminListInListLiveMessageGroups struct { + Admins []string `json:"Admins" xml:"Admins"` +} diff --git a/services/live/struct_app_list_in_list_live_message_apps.go b/services/live/struct_app_list_in_list_live_message_apps.go new file mode 100644 index 0000000000..af3f97375e --- /dev/null +++ b/services/live/struct_app_list_in_list_live_message_apps.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AppListInListLiveMessageApps is a nested struct in live response +type AppListInListLiveMessageApps struct { + Apps []Apps `json:"Apps" xml:"Apps"` +} diff --git a/services/live/struct_apps.go b/services/live/struct_apps.go new file mode 100644 index 0000000000..3ed216ee2b --- /dev/null +++ b/services/live/struct_apps.go @@ -0,0 +1,24 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Apps is a nested struct in live response +type Apps struct { + AppId string `json:"AppId" xml:"AppId"` + AppKey string `json:"AppKey" xml:"AppKey"` + AppSign string `json:"AppSign" xml:"AppSign"` + Disable string `json:"Disable" xml:"Disable"` +} diff --git a/services/live/struct_banned_user_list.go b/services/live/struct_banned_user_list.go new file mode 100644 index 0000000000..ecb920acef --- /dev/null +++ b/services/live/struct_banned_user_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BannedUserList is a nested struct in live response +type BannedUserList struct { + BannedUsers []string `json:"BannedUsers" xml:"BannedUsers"` +} diff --git a/services/live/struct_group_list_in_list_live_message_groups.go b/services/live/struct_group_list_in_list_live_message_groups.go new file mode 100644 index 0000000000..6bd94cd2f4 --- /dev/null +++ b/services/live/struct_group_list_in_list_live_message_groups.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GroupListInListLiveMessageGroups is a nested struct in live response +type GroupListInListLiveMessageGroups struct { + Groups []Groups `json:"Groups" xml:"Groups"` +} diff --git a/services/live/struct_group_list.go b/services/live/struct_group_list_in_list_message_group.go similarity index 87% rename from services/live/struct_group_list.go rename to services/live/struct_group_list_in_list_message_group.go index f58be30fec..14bf74a59f 100644 --- a/services/live/struct_group_list.go +++ b/services/live/struct_group_list_in_list_message_group.go @@ -15,7 +15,7 @@ package live // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// GroupList is a nested struct in live response -type GroupList struct { +// GroupListInListMessageGroup is a nested struct in live response +type GroupListInListMessageGroup struct { GroupListItem []GroupListItem `json:"groupList" xml:"groupList"` } diff --git a/services/live/struct_groups.go b/services/live/struct_groups.go new file mode 100644 index 0000000000..59b471988f --- /dev/null +++ b/services/live/struct_groups.go @@ -0,0 +1,27 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Groups is a nested struct in live response +type Groups struct { + GroupId string `json:"GroupId" xml:"GroupId"` + CreatorId string `json:"CreatorId" xml:"CreatorId"` + Createtime int64 `json:"Createtime" xml:"Createtime"` + GroupName string `json:"GroupName" xml:"GroupName"` + GroupInfo string `json:"GroupInfo" xml:"GroupInfo"` + Delete bool `json:"Delete" xml:"Delete"` + AdminList []string `json:"AdminList" xml:"AdminList"` +} diff --git a/services/live/struct_message_list_in_list_live_message_group_messages.go b/services/live/struct_message_list_in_list_live_message_group_messages.go new file mode 100644 index 0000000000..c72eb07f74 --- /dev/null +++ b/services/live/struct_message_list_in_list_live_message_group_messages.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MessageListInListLiveMessageGroupMessages is a nested struct in live response +type MessageListInListLiveMessageGroupMessages struct { + Messages []Messages `json:"Messages" xml:"Messages"` +} diff --git a/services/live/struct_message_list.go b/services/live/struct_message_list_in_list_message.go similarity index 88% rename from services/live/struct_message_list.go rename to services/live/struct_message_list_in_list_message.go index 5178c6d429..8e6e03dfc0 100644 --- a/services/live/struct_message_list.go +++ b/services/live/struct_message_list_in_list_message.go @@ -15,7 +15,7 @@ package live // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// MessageList is a nested struct in live response -type MessageList struct { +// MessageListInListMessage is a nested struct in live response +type MessageListInListMessage struct { MessageListItem []MessageListItem `json:"messageList" xml:"messageList"` } diff --git a/services/live/struct_messages.go b/services/live/struct_messages.go new file mode 100644 index 0000000000..2f4d1a6691 --- /dev/null +++ b/services/live/struct_messages.go @@ -0,0 +1,27 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Messages is a nested struct in live response +type Messages struct { + Body string `json:"Body" xml:"Body"` + Timestamp int64 `json:"Timestamp" xml:"Timestamp"` + MsgTid string `json:"MsgTid" xml:"MsgTid"` + MsgType int64 `json:"MsgType" xml:"MsgType"` + SeqNumber int64 `json:"SeqNumber" xml:"SeqNumber"` + TotalMessages int64 `json:"TotalMessages" xml:"TotalMessages"` + Sender Sender `json:"Sender" xml:"Sender"` +} diff --git a/services/live/struct_sender.go b/services/live/struct_sender.go new file mode 100644 index 0000000000..28f2848c26 --- /dev/null +++ b/services/live/struct_sender.go @@ -0,0 +1,22 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Sender is a nested struct in live response +type Sender struct { + UserId string `json:"UserId" xml:"UserId"` + UserInfo string `json:"UserInfo" xml:"UserInfo"` +} diff --git a/services/live/struct_unbanned_user_list.go b/services/live/struct_unbanned_user_list.go new file mode 100644 index 0000000000..a55f26e620 --- /dev/null +++ b/services/live/struct_unbanned_user_list.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UnbannedUserList is a nested struct in live response +type UnbannedUserList struct { + UnbannedUsers []string `json:"UnbannedUsers" xml:"UnbannedUsers"` +} diff --git a/services/live/struct_user_list_in_check_live_message_users_online.go b/services/live/struct_user_list_in_check_live_message_users_online.go new file mode 100644 index 0000000000..476d7e7fea --- /dev/null +++ b/services/live/struct_user_list_in_check_live_message_users_online.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserListInCheckLiveMessageUsersOnline is a nested struct in live response +type UserListInCheckLiveMessageUsersOnline struct { + Users []Users `json:"Users" xml:"Users"` +} diff --git a/services/live/struct_user_list_in_list_live_message_group_users.go b/services/live/struct_user_list_in_list_live_message_group_users.go new file mode 100644 index 0000000000..37b18eba3c --- /dev/null +++ b/services/live/struct_user_list_in_list_live_message_group_users.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserListInListLiveMessageGroupUsers is a nested struct in live response +type UserListInListLiveMessageGroupUsers struct { + Users []Users `json:"Users" xml:"Users"` +} diff --git a/services/live/struct_users.go b/services/live/struct_users.go new file mode 100644 index 0000000000..91945ac2e5 --- /dev/null +++ b/services/live/struct_users.go @@ -0,0 +1,23 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Users is a nested struct in live response +type Users struct { + UserInfo string `json:"UserInfo" xml:"UserInfo"` + UserId string `json:"UserId" xml:"UserId"` + Online bool `json:"Online" xml:"Online"` +} diff --git a/services/live/struct_users_in_check_live_message_users_in_group.go b/services/live/struct_users_in_check_live_message_users_in_group.go new file mode 100644 index 0000000000..4699e4a2a8 --- /dev/null +++ b/services/live/struct_users_in_check_live_message_users_in_group.go @@ -0,0 +1,21 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsersInCheckLiveMessageUsersInGroup is a nested struct in live response +type UsersInCheckLiveMessageUsersInGroup struct { + UsersItem []UsersItem `json:"users" xml:"users"` +} diff --git a/services/live/struct_users_item.go b/services/live/struct_users_item.go new file mode 100644 index 0000000000..ca1d9fb162 --- /dev/null +++ b/services/live/struct_users_item.go @@ -0,0 +1,22 @@ +package live + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UsersItem is a nested struct in live response +type UsersItem struct { + UserId string `json:"UserId" xml:"UserId"` + Online bool `json:"Online" xml:"Online"` +}