//------------------------------------------------------------------------------ public virtual void CountProfileRewardByProfileIdByChannelIdByRewardId() { string _profile_id = (string)util.GetParamValue(_context, "profile_id"); string _channel_id = (string)util.GetParamValue(_context, "channel_id"); string _reward_id = (string)util.GetParamValue(_context, "reward_id"); ResponseProfileRewardInt wrapper = new ResponseProfileRewardInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-reward/count/by-profile-id/by-channel-id/by-reward-id"; int i = api.CountProfileRewardByProfileIdByChannelIdByRewardId( _profile_id , _channel_id , _reward_id ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountProfileRewardByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseProfileRewardInt wrapper = new ResponseProfileRewardInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-reward/count/by-uuid"; int i = api.CountProfileRewardByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountProfileReward() { ResponseProfileRewardInt wrapper = new ResponseProfileRewardInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-reward/count"; int i = api.CountProfileReward( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }