/// <summary> /// 获取视频播放凭证 /// </summary> /// <param name="request"></param> /// <returns></returns> public GetVideoPlayAuthResponse GetVideoPlayAuth(GetVideoPlayAuthRequest request) { GetVideoPlayAuthResponse response = new GetVideoPlayAuthResponse(); try { response = acsClient.GetAcsResponse(request); } catch (Exception ex) { } return(response); }
public static GetVideoPlayAuthResponse Unmarshall(UnmarshallerContext context) { GetVideoPlayAuthResponse getVideoPlayAuthResponse = new GetVideoPlayAuthResponse(); getVideoPlayAuthResponse.HttpResponse = context.HttpResponse; getVideoPlayAuthResponse.RequestId = context.StringValue("GetVideoPlayAuth.RequestId"); getVideoPlayAuthResponse.PlayAuth = context.StringValue("GetVideoPlayAuth.PlayAuth"); GetVideoPlayAuthResponse.VideoMeta_ videoMeta = new GetVideoPlayAuthResponse.VideoMeta_(); videoMeta.CoverURL = context.StringValue("GetVideoPlayAuth.VideoMeta.CoverURL"); videoMeta.Duration = context.FloatValue("GetVideoPlayAuth.VideoMeta.Duration"); videoMeta.Status = context.StringValue("GetVideoPlayAuth.VideoMeta.Status"); videoMeta.Title = context.StringValue("GetVideoPlayAuth.VideoMeta.Title"); videoMeta.VideoId = context.StringValue("GetVideoPlayAuth.VideoMeta.VideoId"); getVideoPlayAuthResponse.VideoMeta = videoMeta; return(getVideoPlayAuthResponse); }