public static DataSet CreateTournamentWantinUser(int userID, int tournamentID, int teamID, TournamentUserStatusE tournamentUserStatusID)
        {
            Kv kv = new Kv();

            kv.Set("MethodName", (int)MethodNameE.CreateTournamentWantinUser);

            kv.Set(StdKv.CurrentUserID, Ap.CurrentUserID);
            kv.Set("TournamentID", tournamentID);
            kv.Set("TeamID", teamID);
            kv.Set("UserID", userID);
            kv.Set("TournamentUserStatusID", tournamentUserStatusID.ToString("d"));

            return(SocketClient.Instance.Invoke(kv.DataTable));
        }
        public static void UpdateWantinUsers(StatusE statusID,
                                             TournamentUserStatusE TournamentUserStatusID,
                                             int tournamentID,
                                             string userIDs,
                                             string tournamentWantinUserIDs)
        {
            Kv kv = new Kv();

            kv.Set("MethodName", (int)MethodNameE.UpdateWantinUsers);
            kv.Set(StdKv.CurrentUserID, Ap.CurrentUserID);
            kv.Set("StatusID", statusID.ToString("d"));
            kv.Set("TournamentUserStatusID", TournamentUserStatusID.ToString("d"));
            kv.Set("TournamentID", tournamentID);
            kv.Set("UserIDs", userIDs);
            kv.Set("TournamentWantinUserIDs", tournamentWantinUserIDs);

            SocketClient.Instance.InvokeAsync(kv.DataTable.Copy());
        }
Esempio n. 3
0
        public static DataSet SaveTournamentRegisteredUsers(StatusE statusID,
                                                            TournamentUserStatusE TournamentUserStatusID,
                                                            int tournamentID,
                                                            string userIDs,
                                                            int teamID,
                                                            int eloBefore
                                                            )
        {
            Kv kv = new Kv();

            kv.Set("MethodName", (int)MethodNameE.SaveTournamentRegisteredUsers);
            kv.Set(StdKv.CurrentUserID, Ap.CurrentUserID);
            kv.Set("StatusID", statusID.ToString("d"));
            kv.Set("TournamentUserStatusID", TournamentUserStatusID.ToString("d"));
            kv.Set("TournamentID", tournamentID);
            kv.Set("UserIDs", userIDs);
            kv.Set("TeamID", teamID);
            kv.Set("EloBefore", eloBefore);

            return(SocketClient.Instance.Invoke(kv.DataTable));
        }