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

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

            int i = api.CountProfileByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

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

            int i = api.CountProfile(
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemplo n.º 3
0
        //------------------------------------------------------------------------------
        public virtual void CountProfileByUsernameByHash()
        {
            string _username = (string)util.GetParamValue(_context, "username");
            string _hash = (string)util.GetParamValue(_context, "hash");

            ResponseProfileInt wrapper = new ResponseProfileInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile/count/by-username/by-hash";

            int i = api.CountProfileByUsernameByHash(
                _username
                , _hash
            );

            // get data
            wrapper.data = i;

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