/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteVocabularyResponse response = new DeleteVocabularyResponse(); return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteVocabularyResponse response = new DeleteVocabularyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VocabularyArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.VocabularyArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VocabularyId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.VocabularyId = unmarshaller.Unmarshall(context); continue; } } return(response); }