package ru.yandex.wmtools.common.service;

import ru.yandex.wmtools.common.data.info.VisitingStatInfo;
import ru.yandex.wmtools.common.error.InternalException;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: senin
 * Date: 20.01.2009
 * Time: 9:20:36
 */
public interface IVisitingStatService extends IService {
    /**
     * Calculate number of different requests for user per day.
     * @param userId id of user
     * @param requestName name of request
     */
    void updateVisitingStat(long userId, String requestName);

    public List<VisitingStatInfo> getVisitingStatForLastWeek(Long userId) throws InternalException;
}
