Ejemplo n.º 1
0
        //------------------------------------------------------------------------------
        public virtual void CountGameLeaderboardItemByCodeByGameIdByProfileIdByTimestamp()
        {
            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"));

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

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

            // get data
            wrapper.data = i;

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

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

            int i = api.CountGameLeaderboardItemByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

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

            int i = api.CountGameLeaderboardItem(
            );

            // get data
            wrapper.data = i;

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