XElement IAddressProvider.ConvertBack(object value) { PushEntryObject geo = (PushEntryObject)value; XElement element = new XElement("dummy"); element.Add(new XAttribute("Consumer", geo.Consumer)); element.Value = geo.RecipientApiKey; return(element); }
object IAddressProvider.Convert(XElement element) { string consumer = element.TryGetAttributeValue("Consumer", null); string recApiKey = element.Value; PushEntryObject geo = new PushEntryObject(); geo.Consumer = consumer; geo.RecipientApiKey = recApiKey; return(geo); }