Esempio n. 1
0
        public static AddLiveAppRecordConfigResponse Unmarshall(UnmarshallerContext _ctx)
        {
            AddLiveAppRecordConfigResponse addLiveAppRecordConfigResponse = new AddLiveAppRecordConfigResponse();

            addLiveAppRecordConfigResponse.HttpResponse = _ctx.HttpResponse;
            addLiveAppRecordConfigResponse.RequestId    = _ctx.StringValue("AddLiveAppRecordConfig.RequestId");

            return(addLiveAppRecordConfigResponse);
        }
        public static AddLiveAppRecordConfigResponse Unmarshall(UnmarshallerContext context)
        {
            AddLiveAppRecordConfigResponse addLiveAppRecordConfigResponse = new AddLiveAppRecordConfigResponse();

            addLiveAppRecordConfigResponse.HttpResponse = context.HttpResponse;
            addLiveAppRecordConfigResponse.RequestId = context.StringValue("AddLiveAppRecordConfig.RequestId");

            return addLiveAppRecordConfigResponse;
        }
        public static AddLiveAppRecordConfigResponse Unmarshall(UnmarshallerContext context)
        {
            AddLiveAppRecordConfigResponse addLiveAppRecordConfigResponse = new AddLiveAppRecordConfigResponse
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("AddLiveAppRecordConfig.RequestId")
            };

            return(addLiveAppRecordConfigResponse);
        }
Esempio n. 4
0
        /// <summary>
        /// 配置APP录制,输出内容保存到OSS中
        /// </summary>
        /// <param name="ossEndpoint"></param>
        /// <param name="ossBucket"></param>
        /// <returns></returns>
        public string AddRecordConfig(string ossEndpoint, string ossBucket)
        {
            AddLiveAppRecordConfigRequest request = new AddLiveAppRecordConfigRequest();

            request.AppName      = ConfigSetting.AppName;
            request.Product      = _ProductName;
            request.DomainName   = ConfigSetting.DomainName;
            request.AcceptFormat = Aliyun.Acs.Core.Http.FormatType.JSON;
            request.OssEndpoint  = ossEndpoint;
            request.OssBucket    = ossBucket;
            AddLiveAppRecordConfigResponse response = _AcsClient.GetAcsResponse(request);

            return(GetString(response));
        }