Exemplo n.º 1
0
        public static GetWatermarkResponse Unmarshall(UnmarshallerContext context)
        {
            GetWatermarkResponse getWatermarkResponse = new GetWatermarkResponse();

            getWatermarkResponse.HttpResponse = context.HttpResponse;
            getWatermarkResponse.RequestId    = context.StringValue("GetWatermark.RequestId");

            GetWatermarkResponse.GetWatermark_WatermarkInfo watermarkInfo = new GetWatermarkResponse.GetWatermark_WatermarkInfo();
            watermarkInfo.CreationTime         = context.StringValue("GetWatermark.WatermarkInfo.CreationTime");
            watermarkInfo.Type                 = context.StringValue("GetWatermark.WatermarkInfo.Type");
            watermarkInfo.IsDefault            = context.StringValue("GetWatermark.WatermarkInfo.IsDefault");
            watermarkInfo.WatermarkId          = context.StringValue("GetWatermark.WatermarkInfo.WatermarkId");
            watermarkInfo.Name                 = context.StringValue("GetWatermark.WatermarkInfo.Name");
            watermarkInfo.FileUrl              = context.StringValue("GetWatermark.WatermarkInfo.FileUrl");
            watermarkInfo.WatermarkConfig      = context.StringValue("GetWatermark.WatermarkInfo.WatermarkConfig");
            getWatermarkResponse.WatermarkInfo = watermarkInfo;

            return(getWatermarkResponse);
        }
Exemplo n.º 2
0
        public static GetWatermarkResponse Unmarshall(UnmarshallerContext context)
        {
            GetWatermarkResponse getWatermarkResponse = new GetWatermarkResponse();

            getWatermarkResponse.HttpResponse = context.HttpResponse;
            getWatermarkResponse.RequestId    = context.StringValue("GetWatermark.RequestId");

            GetWatermarkResponse.GetWatermark_Watermark watermark = new GetWatermarkResponse.GetWatermark_Watermark();
            watermark.CreateTime       = context.IntegerValue("GetWatermark.Watermark.CreateTime");
            watermark.HorizontalOffset = context.StringValue("GetWatermark.Watermark.HorizontalOffset");
            watermark.IsDefault        = context.StringValue("GetWatermark.Watermark.IsDefault");
            watermark.Position         = context.StringValue("GetWatermark.Watermark.Position");
            watermark.WatermarkId      = context.StringValue("GetWatermark.Watermark.WatermarkId");
            watermark.VerticalOffset   = context.StringValue("GetWatermark.Watermark.VerticalOffset");
            watermark.Width            = context.StringValue("GetWatermark.Watermark.Width");
            watermark.Height           = context.StringValue("GetWatermark.Watermark.Height");
            watermark.Active           = context.StringValue("GetWatermark.Watermark.Active");
            watermark.Url                  = context.StringValue("GetWatermark.Watermark.Url");
            watermark.Name                 = context.StringValue("GetWatermark.Watermark.Name");
            watermark.VideoHeight          = context.IntegerValue("GetWatermark.Watermark.VideoHeight");
            watermark.VideoWidth           = context.IntegerValue("GetWatermark.Watermark.VideoWidth");
            watermark.ScreenMode           = context.StringValue("GetWatermark.Watermark.ScreenMode");
            getWatermarkResponse.Watermark = watermark;

            GetWatermarkResponse.GetWatermark_WatermarkInfo watermarkInfo = new GetWatermarkResponse.GetWatermark_WatermarkInfo();
            watermarkInfo.CreationTime         = context.StringValue("GetWatermark.WatermarkInfo.CreationTime");
            watermarkInfo.Type                 = context.StringValue("GetWatermark.WatermarkInfo.Type");
            watermarkInfo.IsDefault            = context.StringValue("GetWatermark.WatermarkInfo.IsDefault");
            watermarkInfo.WatermarkId          = context.StringValue("GetWatermark.WatermarkInfo.WatermarkId");
            watermarkInfo.ScreenWidth          = context.IntegerValue("GetWatermark.WatermarkInfo.ScreenWidth");
            watermarkInfo.ScreenHeight         = context.IntegerValue("GetWatermark.WatermarkInfo.ScreenHeight");
            watermarkInfo.Name                 = context.StringValue("GetWatermark.WatermarkInfo.Name");
            watermarkInfo.FileUrl              = context.StringValue("GetWatermark.WatermarkInfo.FileUrl");
            watermarkInfo.WatermarkConfig      = context.StringValue("GetWatermark.WatermarkInfo.WatermarkConfig");
            getWatermarkResponse.WatermarkInfo = watermarkInfo;

            return(getWatermarkResponse);
        }