Amazon.ElasticTranscoder.Model.Internal.MarshallTransformations.CreatePresetResponseUnmarshaller.UnmarshallResult C# (CSharp) Метод

UnmarshallResult() приватный статический Метод

private static UnmarshallResult ( JsonUnmarshallerContext context, CreatePresetResponse response ) : void
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
response Amazon.ElasticTranscoder.Model.CreatePresetResponse
Результат void
        private static void UnmarshallResult(JsonUnmarshallerContext context,CreatePresetResponse response)
        {
          
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            while (context.Read())
            {
              
              if (context.TestExpression("Preset", targetDepth))
              {
                context.Read();
                response.Preset = PresetUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
              if (context.TestExpression("Warning", targetDepth))
              {
                context.Read();
                response.Warning = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
                if (context.CurrentDepth <= originalDepth)
                {                   
                    return;
                }
            }
                        
            return;
        }