Exemple #1
0
        //------------------------------------------------------------------------------
        public virtual void CountRewardCompetitionByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

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

            int i = api.CountRewardCompetitionByUuid(
                _uuid
            );

            // get data
            wrapper.data = i;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Exemple #2
0
        //------------------------------------------------------------------------------
        public virtual void CountRewardCompetitionByChannelIdByCompleted()
        {
            string _channel_id = (string)util.GetParamValue(_context, "channel_id");
            bool _completed = Convert.ToBoolean(util.GetParamValue(_context, "completed"));

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

            int i = api.CountRewardCompetitionByChannelIdByCompleted(
                _channel_id
                , _completed
            );

            // get data
            wrapper.data = i;

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