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

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

            int i = api.CountEventInfoByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Esempio n. 2
0
        //------------------------------------------------------------------------------
        public virtual void CountEventInfo()
        {
            ResponseEventInfoInt wrapper = new ResponseEventInfoInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "event-info/count";

            int i = api.CountEventInfo(
            );

            // get data
            wrapper.data = i;

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