public static MFADeviceUnmarshaller GetInstance() { if (instance == null) { instance = new MFADeviceUnmarshaller(); } return(instance); }
public ListMFADevicesResult Unmarshall(XmlUnmarshallerContext context) { ListMFADevicesResult listMFADevicesResult = new ListMFADevicesResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("MFADevices/member", targetDepth)) { listMFADevicesResult.MFADevices.Add(MFADeviceUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("IsTruncated", targetDepth)) { listMFADevicesResult.IsTruncated = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Marker", targetDepth)) { listMFADevicesResult.Marker = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(listMFADevicesResult); } } return(listMFADevicesResult); }