//------------------------------------------------------------------------------ public virtual void CountRewardConditionByOrgIdByChannelIdByRewardId() { string _org_id = (string)util.GetParamValue(_context, "org_id"); string _channel_id = (string)util.GetParamValue(_context, "channel_id"); string _reward_id = (string)util.GetParamValue(_context, "reward_id"); ResponseRewardConditionInt wrapper = new ResponseRewardConditionInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "reward-condition/count/by-org-id/by-channel-id/by-reward-id"; int i = api.CountRewardConditionByOrgIdByChannelIdByRewardId( _org_id , _channel_id , _reward_id ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountRewardConditionByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseRewardConditionInt wrapper = new ResponseRewardConditionInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "reward-condition/count/by-uuid"; int i = api.CountRewardConditionByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountRewardCondition() { ResponseRewardConditionInt wrapper = new ResponseRewardConditionInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "reward-condition/count"; int i = api.CountRewardCondition( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }