package ru.yandex.webmaster3.viewer.http.searchquery.statistic;

import lombok.EqualsAndHashCode;

import ru.yandex.webmaster3.core.http.RequestQueryProperty;
import ru.yandex.webmaster3.storage.searchquery.DeviceType;
import ru.yandex.webmaster3.viewer.http.AbstractUserVerifiedHostRequest;

/**
 * Created by ifilippov5 on 04.04.17.
 */
@EqualsAndHashCode
public abstract class AbstractDeviceTypeRequest extends AbstractUserVerifiedHostRequest {
    private DeviceType deviceType = DeviceType.ALL_DEVICES;

    @RequestQueryProperty
    public void setDeviceType(DeviceType deviceType) {
        this.deviceType = deviceType;
    }

    public DeviceType getDeviceType() {
        return deviceType;
    }
}
