public static AddLiveAppSnapshotConfigResponse Unmarshall(UnmarshallerContext context) { AddLiveAppSnapshotConfigResponse addLiveAppSnapshotConfigResponse = new AddLiveAppSnapshotConfigResponse(); addLiveAppSnapshotConfigResponse.HttpResponse = context.HttpResponse; addLiveAppSnapshotConfigResponse.RequestId = context.StringValue("AddLiveAppSnapshotConfig.RequestId"); return addLiveAppSnapshotConfigResponse; }
public static AddLiveAppSnapshotConfigResponse Unmarshall(UnmarshallerContext context) { AddLiveAppSnapshotConfigResponse addLiveAppSnapshotConfigResponse = new AddLiveAppSnapshotConfigResponse(); addLiveAppSnapshotConfigResponse.HttpResponse = context.HttpResponse; addLiveAppSnapshotConfigResponse.RequestId = context.StringValue("AddLiveAppSnapshotConfig.RequestId"); return(addLiveAppSnapshotConfigResponse); }
/// <summary> /// 针对直播流下的AppName配置截图信息,输出内容保存到OSS中,重新推流生效。 /// </summary> /// <param name="ossEndpoint"></param> /// <param name="ossBucket"></param> /// <param name="timeInterval"></param> /// <returns></returns> public string AddSnapshotConfig(string ossEndpoint, string ossBucket, int timeInterval) { AddLiveAppSnapshotConfigRequest request = new AddLiveAppSnapshotConfigRequest(); request.AppName = ConfigSetting.AppName; request.Product = _ProductName; request.DomainName = ConfigSetting.DomainName; request.AcceptFormat = Aliyun.Acs.Core.Http.FormatType.JSON; request.TimeInterval = timeInterval; request.OssEndpoint = ossEndpoint; request.OssBucket = ossBucket; AddLiveAppSnapshotConfigResponse response = _AcsClient.GetAcsResponse(request); return(GetString(response)); }