Beispiel #1
0
        //------------------------------------------------------------------------------
        public virtual void CountMessageByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

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

            int i = api.CountMessageByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Beispiel #2
0
        //------------------------------------------------------------------------------
        public virtual void CountMessage()
        {
            ResponseMessageInt wrapper = new ResponseMessageInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "message/count";

            int i = api.CountMessage(
            );

            // get data
            wrapper.data = i;

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