/*
* 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 medialive-2017-10-14.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.MediaLive.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.MediaLive.Model.Internal.MarshallTransformations
{
///
/// Response Unmarshaller for HlsGroupSettings Object
///
public class HlsGroupSettingsUnmarshaller : IUnmarshaller, IUnmarshaller
{
///
/// Unmarshaller the response from the service to the response class.
///
///
///
HlsGroupSettings IUnmarshaller.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
///
/// Unmarshaller the response from the service to the response class.
///
///
///
public HlsGroupSettings Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
HlsGroupSettings unmarshalledObject = new HlsGroupSettings();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("adMarkers", targetDepth))
{
var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance);
unmarshalledObject.AdMarkers = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("baseUrlContent", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BaseUrlContent = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("baseUrlContent1", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BaseUrlContent1 = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("baseUrlManifest", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BaseUrlManifest = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("baseUrlManifest1", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BaseUrlManifest1 = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("captionLanguageMappings", targetDepth))
{
var unmarshaller = new ListUnmarshaller(CaptionLanguageMappingUnmarshaller.Instance);
unmarshalledObject.CaptionLanguageMappings = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("captionLanguageSetting", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CaptionLanguageSetting = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("clientCache", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ClientCache = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("codecSpecification", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CodecSpecification = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("constantIv", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ConstantIv = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("destination", targetDepth))
{
var unmarshaller = OutputLocationRefUnmarshaller.Instance;
unmarshalledObject.Destination = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("directoryStructure", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DirectoryStructure = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("discontinuityTags", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DiscontinuityTags = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("encryptionType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EncryptionType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("hlsCdnSettings", targetDepth))
{
var unmarshaller = HlsCdnSettingsUnmarshaller.Instance;
unmarshalledObject.HlsCdnSettings = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("hlsId3SegmentTagging", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HlsId3SegmentTagging = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("iFrameOnlyPlaylists", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IFrameOnlyPlaylists = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("incompleteSegmentBehavior", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IncompleteSegmentBehavior = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("indexNSegments", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.IndexNSegments = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("inputLossAction", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InputLossAction = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ivInManifest", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IvInManifest = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ivSource", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IvSource = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("keepSegments", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.KeepSegments = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("keyFormat", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.KeyFormat = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("keyFormatVersions", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.KeyFormatVersions = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("keyProviderSettings", targetDepth))
{
var unmarshaller = KeyProviderSettingsUnmarshaller.Instance;
unmarshalledObject.KeyProviderSettings = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("manifestCompression", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ManifestCompression = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("manifestDurationFormat", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ManifestDurationFormat = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("minSegmentLength", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MinSegmentLength = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("mode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Mode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("outputSelection", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.OutputSelection = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("programDateTime", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ProgramDateTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("programDateTimeClock", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ProgramDateTimeClock = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("programDateTimePeriod", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ProgramDateTimePeriod = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("redundantManifest", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RedundantManifest = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("segmentationMode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SegmentationMode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("segmentLength", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.SegmentLength = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("segmentsPerSubdirectory", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.SegmentsPerSubdirectory = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("streamInfResolution", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StreamInfResolution = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("timedMetadataId3Frame", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TimedMetadataId3Frame = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("timedMetadataId3Period", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.TimedMetadataId3Period = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("timestampDeltaMilliseconds", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.TimestampDeltaMilliseconds = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tsFileMode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TsFileMode = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static HlsGroupSettingsUnmarshaller _instance = new HlsGroupSettingsUnmarshaller();
///
/// Gets the singleton.
///
public static HlsGroupSettingsUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}