Exemplo n.º 1
0
        public async Task <bool> LoadAll()
        {
            List <Notification> nots = await NWebApi.Load();

            List <Alert> als = await AWebApi.Load();

            return(true);
        }
Exemplo n.º 2
0
        public async void LoadInbox()
        {
            List <Message> templist = await WebApi.Load();

            var inboxquerry = from mess in templist
                              where mess.ReceiverId == SessionTools.CurrentSessioncs.GetCurrentUserID()
                              select mess;

            Inbox = new ObservableCollection <Message>(inboxquerry);
        }
Exemplo n.º 3
0
        public static async void GetAllUsers()
        {
            //oldDB http://stationlogwebapplication120180426012243.azurewebsites.net
            //newDB http://stationlogsystemwebapplication20180521105958.azurewebsites.net

            WebAPIAsync <User> UserWebAPI = new WebAPIAsync <User>("http://stationlogsystemwebapplication20180521105958.azurewebsites.net", "api", "Users");

            try
            {
                var users = await UserWebAPI.Load();

                if (users != null)
                {
                    foreach (var user in users)
                    {
                        UserListToCheck.Add(user);
                    }
                }
            }
            catch (Exception e)
            {
                throw e;
            }
        }