Esempio n. 1
0
        public async Task GetData()
        {
            _stations = new List <Station>();
            var fireBase = new FirebaseLib();
            var result   = await fireBase.LoginAsync();

            if (result)
            {
                var stations = await fireBase.GetStations();

                foreach (var item in stations)
                {
                    _stations.Add(item);
                }
            }
        }
Esempio n. 2
0
        private async void Form1_Load(object sender, EventArgs e)

        {
            navigationPage1.Caption = "Station";
            navigationPage2.Caption = "Flights";
            navigationPage3.Caption = "Users";

            var fireBase = new FirebaseLib();
            var result   = await fireBase.LoginAsync();

            if (result)
            {
                Console.WriteLine(fireBase.GetUser().Email);
                var stations = await fireBase.GetStations();

                foreach (var item in stations)
                {
                    Console.WriteLine(item.Name);
                }
            }
        }