Example #1
0
        //------------------------------------------------------------------------------
        public virtual void CountGameNetworkByUuidByType()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");
            string _type = (string)util.GetParamValue(_context, "type");

            ResponseGameNetworkInt wrapper = new ResponseGameNetworkInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-network/count/by-uuid/by-type";

            int i = api.CountGameNetworkByUuidByType(
                _uuid
                , _type
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Example #2
0
        //------------------------------------------------------------------------------
        public virtual void CountGameNetwork()
        {
            ResponseGameNetworkInt wrapper = new ResponseGameNetworkInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-network/count";

            int i = api.CountGameNetwork(
            );

            // get data
            wrapper.data = i;

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