public static void Auth(string data) { try { var req = SELECT.SelectLoginRequest("*", "users", Items.GetLoginList(), Items.SetLoginList(data)); RequestToDB.CreateRequest(req, "LoginRequest"); } catch (Exception ex) { FormsManaging.TextGenerator(ex.ToString()); } }
public static void RegisterProfile(string data) { try { var req = INSERT.InsertRequest("users", Items.GetRegisterList(), Items.SetRegisterList(data)); RequestToDB.CreateRequest(req, "RegistrationRequest"); } catch (Exception ex) { FormsManaging.TextGenerator(ex.ToString()); } }
public static string RequestLeaderboards() { string count = RequestToDB.CreateRequest(SELECT.SelectData("*", "scores", "score"), "GetLeaderboardsRequest"); int CountOfItems = count.Split(' ').Count(); List <LeaderList> result = new List <LeaderList>(CountOfItems); for (int i = 0; i < result.Capacity; i++) { result.Add(new LeaderList() { data = count }); } var responce = count; return(responce); }
public static void SetUserScores(string data) { var request = INSERT.InsertRequest($"scores", "score", data); RequestToDB.CreateRequest(request, "SetScoreRequest"); }
public static void GetUserScores(string username) { RequestToDB.CreateRequest(SELECT.SelectLoginRequest("score", "scores", "username", Items.GetScoreList(username)), "GetScoreRequest"); }
public static void CreateTable(string username) { var data = INSERT.InsertRequest("scores", "username", username); RequestToDB.CreateRequest(data, "CreateTable"); }