Exemplo n.º 1
0
        //------------------------------------------------------------------------------
        public virtual void CountRewardByOrgIdByChannelId()
        {
            string _org_id = (string)util.GetParamValue(_context, "org_id");
            string _channel_id = (string)util.GetParamValue(_context, "channel_id");

            ResponseRewardInt wrapper = new ResponseRewardInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "reward/count/by-org-id/by-channel-id";

            int i = api.CountRewardByOrgIdByChannelId(
                _org_id
                , _channel_id
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemplo n.º 2
0
        //------------------------------------------------------------------------------
        public virtual void CountRewardByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

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

            int i = api.CountRewardByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemplo n.º 3
0
        //------------------------------------------------------------------------------
        public virtual void CountReward()
        {
            ResponseRewardInt wrapper = new ResponseRewardInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "reward/count";

            int i = api.CountReward(
            );

            // get data
            wrapper.data = i;

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