Esempio n. 1
0
 public string GetScoreboard()
 {
     return(DatabaseService.GetScoreboard());
 }
Esempio n. 2
0
 public string login(string username, string password)
 {
     return(DatabaseService.LogInUser(username, password));
 }
Esempio n. 3
0
 public string UpdateUser(string username, string userbio, string userimage)
 {
     return(DatabaseService.UpdateUser(username, userbio, userimage));
 }
Esempio n. 4
0
 public string GetUserStats(string username)
 {
     return(DatabaseService.GetUserStats(username));
 }
Esempio n. 5
0
        // Interaction with Database

        public string setUser(string username, string password)
        {
            return(DatabaseService.InsertUser(username, password));
        }
Esempio n. 6
0
 public string deleteUser(string username)
 {
     return(DatabaseService.DeleteUser(username));
 }
Esempio n. 7
0
 public string BuyCard(string newcardowner, int cardID)
 {
     return(DatabaseService.BuyACard(newcardowner, cardID));
 }
Esempio n. 8
0
 public string ShowDeckCards(string username)
 {
     return(DatabaseService.GetDeckCards(username));
 }
Esempio n. 9
0
 public string PutCardToTrade(string cardowner, int cardID, int price)
 {
     return(DatabaseService.CreateTradeDeal(cardowner, price, cardID));
 }
Esempio n. 10
0
 public string DeleteTradeDeal(string cardowner, int cardID)
 {
     return(DatabaseService.DeleteTradeDeal(cardowner, cardID));
 }
Esempio n. 11
0
 public string ShowTradesForUser(string username)
 {
     return(DatabaseService.ShowALLCardsForSAleForUSer(username));
 }
Esempio n. 12
0
 public string ShowAllTradings()
 {
     return(DatabaseService.ShowALLCardsForSAle());
 }
Esempio n. 13
0
 public string MoveCardToStack(int cardID, string cardowner)
 {
     return(DatabaseService.MoveCardToStack(cardID, cardowner));
 }
Esempio n. 14
0
 public string logout(string username, string password)
 {
     return(DatabaseService.LogOutUser(username, password));
 }
Esempio n. 15
0
        //Battle

        public string Battle(string username)
        {
            return(DatabaseService.SearchForBattle(username));
        }
Esempio n. 16
0
        public string acuirePackage(string username)
        {
            Package package = createPackage();

            return(DatabaseService.OpenPackage(username, package));
        }
Esempio n. 17
0
 public string ShowUserStackcards(string username)
 {
     return(DatabaseService.GetStackCards(username));
 }