Exemplo n.º 1
0
        //------------------------------------------------------------------------------
        public virtual void CountGameLevelByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

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

            int i = api.CountGameLevelByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemplo n.º 2
0
        //------------------------------------------------------------------------------
        public virtual void CountGameLevel()
        {
            ResponseGameLevelInt wrapper = new ResponseGameLevelInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-level/count";

            int i = api.CountGameLevel(
            );

            // get data
            wrapper.data = i;

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