/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the mediaconvert-2017-08-29.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.MediaConvert.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.MediaConvert.Model.Internal.MarshallTransformations { /// /// DvbSubDestinationSettings Marshaller /// public class DvbSubDestinationSettingsMarshaller : IRequestMarshaller { /// /// Unmarshaller the response from the service to the response class. /// /// /// /// public void Marshall(DvbSubDestinationSettings requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAlignment()) { context.Writer.WritePropertyName("alignment"); context.Writer.Write(requestObject.Alignment); } if(requestObject.IsSetApplyFontColor()) { context.Writer.WritePropertyName("applyFontColor"); context.Writer.Write(requestObject.ApplyFontColor); } if(requestObject.IsSetBackgroundColor()) { context.Writer.WritePropertyName("backgroundColor"); context.Writer.Write(requestObject.BackgroundColor); } if(requestObject.IsSetBackgroundOpacity()) { context.Writer.WritePropertyName("backgroundOpacity"); context.Writer.Write(requestObject.BackgroundOpacity); } if(requestObject.IsSetDdsHandling()) { context.Writer.WritePropertyName("ddsHandling"); context.Writer.Write(requestObject.DdsHandling); } if(requestObject.IsSetDdsXCoordinate()) { context.Writer.WritePropertyName("ddsXCoordinate"); context.Writer.Write(requestObject.DdsXCoordinate); } if(requestObject.IsSetDdsYCoordinate()) { context.Writer.WritePropertyName("ddsYCoordinate"); context.Writer.Write(requestObject.DdsYCoordinate); } if(requestObject.IsSetFallbackFont()) { context.Writer.WritePropertyName("fallbackFont"); context.Writer.Write(requestObject.FallbackFont); } if(requestObject.IsSetFontColor()) { context.Writer.WritePropertyName("fontColor"); context.Writer.Write(requestObject.FontColor); } if(requestObject.IsSetFontOpacity()) { context.Writer.WritePropertyName("fontOpacity"); context.Writer.Write(requestObject.FontOpacity); } if(requestObject.IsSetFontResolution()) { context.Writer.WritePropertyName("fontResolution"); context.Writer.Write(requestObject.FontResolution); } if(requestObject.IsSetFontScript()) { context.Writer.WritePropertyName("fontScript"); context.Writer.Write(requestObject.FontScript); } if(requestObject.IsSetFontSize()) { context.Writer.WritePropertyName("fontSize"); context.Writer.Write(requestObject.FontSize); } if(requestObject.IsSetHeight()) { context.Writer.WritePropertyName("height"); context.Writer.Write(requestObject.Height); } if(requestObject.IsSetHexFontColor()) { context.Writer.WritePropertyName("hexFontColor"); context.Writer.Write(requestObject.HexFontColor); } if(requestObject.IsSetOutlineColor()) { context.Writer.WritePropertyName("outlineColor"); context.Writer.Write(requestObject.OutlineColor); } if(requestObject.IsSetOutlineSize()) { context.Writer.WritePropertyName("outlineSize"); context.Writer.Write(requestObject.OutlineSize); } if(requestObject.IsSetShadowColor()) { context.Writer.WritePropertyName("shadowColor"); context.Writer.Write(requestObject.ShadowColor); } if(requestObject.IsSetShadowOpacity()) { context.Writer.WritePropertyName("shadowOpacity"); context.Writer.Write(requestObject.ShadowOpacity); } if(requestObject.IsSetShadowXOffset()) { context.Writer.WritePropertyName("shadowXOffset"); context.Writer.Write(requestObject.ShadowXOffset); } if(requestObject.IsSetShadowYOffset()) { context.Writer.WritePropertyName("shadowYOffset"); context.Writer.Write(requestObject.ShadowYOffset); } if(requestObject.IsSetStylePassthrough()) { context.Writer.WritePropertyName("stylePassthrough"); context.Writer.Write(requestObject.StylePassthrough); } if(requestObject.IsSetSubtitlingType()) { context.Writer.WritePropertyName("subtitlingType"); context.Writer.Write(requestObject.SubtitlingType); } if(requestObject.IsSetTeletextSpacing()) { context.Writer.WritePropertyName("teletextSpacing"); context.Writer.Write(requestObject.TeletextSpacing); } if(requestObject.IsSetWidth()) { context.Writer.WritePropertyName("width"); context.Writer.Write(requestObject.Width); } if(requestObject.IsSetXPosition()) { context.Writer.WritePropertyName("xPosition"); context.Writer.Write(requestObject.XPosition); } if(requestObject.IsSetYPosition()) { context.Writer.WritePropertyName("yPosition"); context.Writer.Write(requestObject.YPosition); } } /// /// Singleton Marshaller. /// public readonly static DvbSubDestinationSettingsMarshaller Instance = new DvbSubDestinationSettingsMarshaller(); } }