Пример #1
0
        //------------------------------------------------------------------------------
        public virtual void CountProfileRewardPointsByChannelIdByOrgId()
        {
            string _channel_id = (string)util.GetParamValue(_context, "channel_id");
            string _org_id = (string)util.GetParamValue(_context, "org_id");

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

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

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Пример #2
0
        //------------------------------------------------------------------------------
        public virtual void CountProfileRewardPointsByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

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

            int i = api.CountProfileRewardPointsByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Пример #3
0
        //------------------------------------------------------------------------------
        public virtual void CountProfileRewardPoints()
        {
            ResponseProfileRewardPointsInt wrapper = new ResponseProfileRewardPointsInt();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile-reward-points/count";

            int i = api.CountProfileRewardPoints(
            );

            // get data
            wrapper.data = i;

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