Beispiel #1
0
        public static void Save(IContactLoader loader, IEnumerable <Contact> contacts)
        {
            if (loader == null)
            {
                throw new Exception("Missing contact loader from platform.");
            }

            loader.Save(contacts);
        }
Beispiel #2
0
        public static IEnumerable <Contact> Load(IContactLoader loader)
        {
            if (loader == null)
            {
                throw new Exception("Missing quote loader from platform.");
            }

            return(loader.Load());
        }
Beispiel #3
0
        public static IEnumerable <Contact> Load(IContactLoader loader)
        {
            loader = DependencyService.Get <IContactLoader>();
            if (loader == null)
            {
                throw new Exception("Missing contact loader from platform.");
            }

            return(loader.Load());
        }
Beispiel #4
0
        public static void Save(IEnumerable <Contact> quotes)
        {
            IContactLoader loader = DependencyService.Get <IContactLoader>();

            if (loader == null)
            {
                throw new Exception("Missing contact loader from platform.");
            }

            loader.Save(quotes);
        }