//------------------------------------------------------------------------------ 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); }
//------------------------------------------------------------------------------ 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); }
//------------------------------------------------------------------------------ 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); }