Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }