Exemplo n.º 1
0
        //------------------------------------------------------------------------------
        public virtual void CountGameProfileAttributeByType()
        {
            int _type = int.Parse(util.GetParamValue(_context, "type"));

            ResponseGameProfileAttributeInt wrapper = new ResponseGameProfileAttributeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-profile-attribute/count/by-type";

            int i = api.CountGameProfileAttributeByType(
                _type
            );

            // get data
            wrapper.data = i;

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

            ResponseGameProfileAttributeInt wrapper = new ResponseGameProfileAttributeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-profile-attribute/count/by-uuid";

            int i = api.CountGameProfileAttributeByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

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

            int i = api.CountGameProfileAttribute(
            );

            // get data
            wrapper.data = i;

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