Advertisement
temirlan100

Untitled

Dec 2nd, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.17 KB | None | 0 0
  1. public class SaleEvent {
  2.     private String eventId;
  3.     private String productId;
  4.     private int quantity;
  5.     private String storeId;
  6.     private String saleDate; // Формат YYYY-MM-DD
  7.     private long timestamp;
  8.  
  9.     public String getEventId() {
  10.         return eventId;
  11.     }
  12.  
  13.     public void setEventId(String eventId) {
  14.         this.eventId = eventId;
  15.     }
  16.  
  17.     public String getProductId() {
  18.         return productId;
  19.     }
  20.  
  21.     public void setProductId(String productId) {
  22.         this.productId = productId;
  23.     }
  24.  
  25.     public int getQuantity() {
  26.         return quantity;
  27.     }
  28.  
  29.     public void setQuantity(int quantity) {
  30.         this.quantity = quantity;
  31.     }
  32.  
  33.     public String getStoreId() {
  34.         return storeId;
  35.     }
  36.  
  37.     public void setStoreId(String storeId) {
  38.         this.storeId = storeId;
  39.     }
  40.  
  41.     public String getSaleDate() {
  42.         return saleDate;
  43.     }
  44.  
  45.     public void setSaleDate(String saleDate) {
  46.         this.saleDate = saleDate;
  47.     }
  48.  
  49.     public long getTimestamp() {
  50.         return timestamp;
  51.     }
  52.  
  53.     public void setTimestamp(long timestamp) {
  54.         this.timestamp = timestamp;
  55.     }
  56. }
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement