Example #1
0
        public async void Refresh()
        {
            IsBusy = true;
            await MoveDAO.GetMoves();

            IsBusy = false;
        }
Example #2
0
        public async void OnDelete(string id)
        {
            IsBusy = true;
            await MoveDAO.DeleteMove(id);

            IsBusy = false;
        }
Example #3
0
        public static async Task <bool> AddMove(String name, User user)
        {
            Move newMove = new Move(name);

            newMove.id = await MoveDAO.CreateMove(newMove);

            if (string.IsNullOrEmpty(newMove.id))
            {
                return(false);
            }

            user.addOrUpdateMove(newMove);
            return(true);
        }