/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdatePhoneNumberResponse response = new UpdatePhoneNumberResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("PhoneNumber", targetDepth)) { var unmarshaller = PhoneNumberUnmarshaller.Instance; response.PhoneNumber = unmarshaller.Unmarshall(context); continue; } } 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) { UpdatePhoneNumberResponse response = new UpdatePhoneNumberResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeletionProtectionEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.DeletionProtectionEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IsoCountryCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IsoCountryCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MessageType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.MessageType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MonthlyLeasingPrice", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.MonthlyLeasingPrice = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NumberCapabilities", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.NumberCapabilities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NumberType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NumberType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OptOutListName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OptOutListName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhoneNumber", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PhoneNumber = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhoneNumberArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PhoneNumberArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhoneNumberId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PhoneNumberId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SelfManagedOptOutsEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.SelfManagedOptOutsEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TwoWayChannelArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TwoWayChannelArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TwoWayEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.TwoWayEnabled = unmarshaller.Unmarshall(context); continue; } } return(response); }