Files
EasyDrop/src/main/java/de/rwu/easydrop/model/Offer.java
2023-06-26 12:55:52 +02:00

48 lines
802 B
Java

package de.rwu.easydrop.model;
import java.util.Date;
import lombok.Data;
/**
* An Offer.
*
* @since 0.3.0
*/
@Data
public class Offer {
/**
* The product that our software buys.
*/
private Product sourceProduct;
/**
* The product that our software sells.
*/
private Product saleProduct;
/**
* Date of the creation of the offer.
* NOTE: Use Timestamp? https://docs.oracle.com/javase/8/docs/api/java/sql/Timestamp.html
*/
private Date creationDate;
/**
* Date of last update of the offer on the destination website (API).
*/
private Date upDate;
/**
* Date of last check if offer is still valid.
*/
private Date checkDate;
/**
* ID of the offer.
*/
private String offerId;
}