AgGateway.ADAPT.ISOv4Plugin.Writers.CustomerWriter.WriteContacts C# (CSharp) Method

WriteContacts() private static method

private static WriteContacts ( XmlWriter writer, List contacts ) : void
writer System.Xml.XmlWriter
contacts List
return void
        private static void WriteContacts(XmlWriter writer, List<Contact> contacts)
        {
            if (contacts == null || contacts.Count == 0)
                return;

            writer.WriteXmlAttribute("J", GetContactForType(contacts, ContactTypeEnum.FixedPhone));
            writer.WriteXmlAttribute("K", GetContactForType(contacts, ContactTypeEnum.MobilePhone));
            writer.WriteXmlAttribute("L", GetContactForType(contacts, ContactTypeEnum.Fax));
            writer.WriteXmlAttribute("M", GetContactForType(contacts, ContactTypeEnum.Email));
        }