コード例 #1
0
ファイル: Client.cs プロジェクト: aliyun/dingtalk-sdk
        public async Task <DeviceConferenceResponse> DeviceConferenceAsync(DeviceConferenceRequest request)
        {
            AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
            DeviceConferenceHeaders headers = new DeviceConferenceHeaders();

            return(await DeviceConferenceWithOptionsAsync(request, headers, runtime));
        }
コード例 #2
0
ファイル: Client.cs プロジェクト: aliyun/dingtalk-sdk
        public DeviceConferenceResponse DeviceConference(DeviceConferenceRequest request)
        {
            AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
            DeviceConferenceHeaders headers = new DeviceConferenceHeaders();

            return(DeviceConferenceWithOptions(request, headers, runtime));
        }
コード例 #3
0
ファイル: Client.cs プロジェクト: aliyun/dingtalk-sdk
        public async Task <DeviceConferenceResponse> DeviceConferenceWithOptionsAsync(DeviceConferenceRequest request, DeviceConferenceHeaders headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
        {
            AlibabaCloud.TeaUtil.Common.ValidateModel(request);
            Dictionary <string, object> body = new Dictionary <string, object>()
            {
            };

            if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ConfTitle))
            {
                body["confTitle"] = request.ConfTitle;
            }
            if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ConferenceId))
            {
                body["conferenceId"] = request.ConferenceId;
            }
            if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ConferencePassword))
            {
                body["conferencePassword"] = request.ConferencePassword;
            }
            if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DeviceIds))
            {
                body["deviceIds"] = request.DeviceIds;
            }
            Dictionary <string, string> realHeaders = new Dictionary <string, string>()
            {
            };

            if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.CommonHeaders))
            {
                realHeaders = headers.CommonHeaders;
            }
            if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.XAcsDingtalkAccessToken))
            {
                realHeaders["x-acs-dingtalk-access-token"] = AlibabaCloud.TeaUtil.Common.ToJSONString(headers.XAcsDingtalkAccessToken);
            }
            AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest
            {
                Headers = realHeaders,
                Body    = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body),
            };
            return(TeaModel.ToObject <DeviceConferenceResponse>(await DoROARequestAsync("DeviceConference", "diot_1.0", "HTTP", "POST", "AK", "/v1.0/diot/deviceConferences/initiate", "json", req, runtime)));
        }