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

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

            int i = api.CountContentItemByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

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

            int i = api.CountContentItem(
            );

            // get data
            wrapper.data = i;

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