Exemplo n.º 1
0
        //------------------------------------------------------------------------------
        public virtual void CountGameLeaderboardByCodeByGameIdByProfileIdByTimestamp()
        {
            string _code = (string)util.GetParamValue(_context, "code");
            string _game_id = (string)util.GetParamValue(_context, "game_id");
            string _profile_id = (string)util.GetParamValue(_context, "profile_id");
            float _timestamp = float.Parse(util.GetParamValue(_context, "timestamp"));

            ResponseGameLeaderboardInt wrapper = new ResponseGameLeaderboardInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-leaderboard/count/by-code/by-game-id/by-profile-id/by-timestamp";

            int i = api.CountGameLeaderboardByCodeByGameIdByProfileIdByTimestamp(
                _code
                , _game_id
                , _profile_id
                , _timestamp
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemplo n.º 2
0
        //------------------------------------------------------------------------------
        public virtual void CountGameLeaderboardByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

            ResponseGameLeaderboardInt wrapper = new ResponseGameLeaderboardInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-leaderboard/count/by-uuid";

            int i = api.CountGameLeaderboardByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemplo n.º 3
0
        //------------------------------------------------------------------------------
        public virtual void CountGameLeaderboard()
        {
            ResponseGameLeaderboardInt wrapper = new ResponseGameLeaderboardInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-leaderboard/count";

            int i = api.CountGameLeaderboard(
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }