Example #1
0
        //------------------------------------------------------------------------------
        public virtual void CountEventCategoryByOrgIdByTypeId()
        {
            string _org_id = (string)util.GetParamValue(_context, "org_id");
            string _type_id = (string)util.GetParamValue(_context, "type_id");

            ResponseEventCategoryInt wrapper = new ResponseEventCategoryInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "event-category/count/by-org-id/by-type-id";

            int i = api.CountEventCategoryByOrgIdByTypeId(
                _org_id
                , _type_id
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Example #2
0
        //------------------------------------------------------------------------------
        public virtual void CountEventCategoryByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

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

            int i = api.CountEventCategoryByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Example #3
0
        //------------------------------------------------------------------------------
        public virtual void CountEventCategory()
        {
            ResponseEventCategoryInt wrapper = new ResponseEventCategoryInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "event-category/count";

            int i = api.CountEventCategory(
            );

            // get data
            wrapper.data = i;

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