From 7f79761ecf74d362c12adb9ff7bc4188a5d7e9ca Mon Sep 17 00:00:00 2001 From: Daniil Solovyov Date: Wed, 13 Mar 2024 12:31:08 +0100 Subject: [PATCH] Add XReportPrintingRequest (#101) https://dev.untill.com/projects/#!685103 Co-authored-by: sda --- .../report/XReportPrintingRequest.java | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/main/java/com/untill/driver/interfaces/report/XReportPrintingRequest.java diff --git a/src/main/java/com/untill/driver/interfaces/report/XReportPrintingRequest.java b/src/main/java/com/untill/driver/interfaces/report/XReportPrintingRequest.java new file mode 100644 index 0000000..38cd75f --- /dev/null +++ b/src/main/java/com/untill/driver/interfaces/report/XReportPrintingRequest.java @@ -0,0 +1,55 @@ +package com.untill.driver.interfaces.report; + +import java.util.Date; + +/** + * A request for {@link IReportHandler} X-report printed operation + */ +public class XReportPrintingRequest extends ReportHandlerRequest { + /** + * X-report from timestamp + */ + private Date from; + /** + * X-report till timestamp + */ + private Date till; + /** + * An ID of the {@link com.untill.driver.untillapi.users.User#id user} + */ + private long userId; + + public Date getFrom() { + return from; + } + + public void setFrom(Date from) { + this.from = from; + } + + public Date getTill() { + return till; + } + + public void setTill(Date till) { + this.till = till; + } + + public long getUserId() { + return userId; + } + + public void setUserId(long userId) { + this.userId = userId; + } + + @Override + public String toString() { + return "XReportPrintingRequest{" + + "from=" + from + + ", till=" + till + + ", userId=" + userId + + "} " + + super.toString(); + } +}