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

            ResponseRewardConditionTypeInt wrapper = new ResponseRewardConditionTypeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "reward-condition-type/count/by-uuid";

            int i = api.CountRewardConditionTypeByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Esempio n. 2
0
        //------------------------------------------------------------------------------
        public virtual void CountRewardConditionType()
        {
            ResponseRewardConditionTypeInt wrapper = new ResponseRewardConditionTypeInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "reward-condition-type/count";

            int i = api.CountRewardConditionType(
            );

            // get data
            wrapper.data = i;

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