package ru.yandex.webmaster3.core.addurl;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;

import java.util.UUID;

/**
 * Created by ifilippov5 on 08.11.17.
 */
@Data
@AllArgsConstructor
public class OwnerRequest {
    private final String owner;
    private final UUID urlId;
    private final LocalDate addDate;
    private final DateTime addDateTime;

    public OwnerRequest(String owner, UUID urlId, DateTime addDateTime) {
        this(owner, urlId, addDateTime.toLocalDate(), addDateTime);
    }
}
