public RetrieveDomainAuthCodeResult unmarshall(JsonUnmarshallerContext context) throws Exception { RetrieveDomainAuthCodeResult retrieveDomainAuthCodeResult = new RetrieveDomainAuthCodeResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("AuthCode", targetDepth)) { context.nextToken(); retrieveDomainAuthCodeResult.setAuthCode( StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return retrieveDomainAuthCodeResult; }
public UpdateDomainContactPrivacyResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateDomainContactPrivacyResult updateDomainContactPrivacyResult = new UpdateDomainContactPrivacyResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) return null; while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("OperationId", targetDepth)) { context.nextToken(); updateDomainContactPrivacyResult.setOperationId( context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return updateDomainContactPrivacyResult; }