package ru.yandex.webmaster3.worker.feeds.download;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Value;

import ru.yandex.webmaster3.core.download.GzipMdsSerializable;

/**
 * Created by Oleg Bazdyrev on 18/01/2022.
 */
@Value
public class FeedsErrorsData implements GzipMdsSerializable {

    @JsonProperty("host")
    String domain;
    @JsonProperty("feed")
    String feed;
    @JsonProperty("timestamp")
    long timestamp;
    @JsonProperty("lastAccess")
    long lastAccess;
    @JsonProperty("partition")
    long partition;
    @JsonProperty("data")
    byte[] data;

    @Override
    public byte[] getValue() {
        return data;
    }
}
