You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.7 KiB
53 lines
1.7 KiB
package model;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class Item implements Serializable {
|
|
private String id;
|
|
private String title;
|
|
private String description;
|
|
private double price;
|
|
private List<String> imageUrls;
|
|
private String category;
|
|
private String location;
|
|
private String contact;
|
|
private long publishTime;
|
|
private String userId;
|
|
|
|
public Item() {
|
|
imageUrls = new ArrayList<>();
|
|
}
|
|
|
|
// Getters and Setters
|
|
public String getId() { return id; }
|
|
public void setId(String id) { this.id = id; }
|
|
|
|
public String getTitle() { return title; }
|
|
public void setTitle(String title) { this.title = title; }
|
|
|
|
public String getDescription() { return description; }
|
|
public void setDescription(String description) { this.description = description; }
|
|
|
|
public double getPrice() { return price; }
|
|
public void setPrice(double price) { this.price = price; }
|
|
|
|
public List<String> getImageUrls() { return imageUrls; }
|
|
public void setImageUrls(List<String> imageUrls) { this.imageUrls = imageUrls; }
|
|
|
|
public String getCategory() { return category; }
|
|
public void setCategory(String category) { this.category = category; }
|
|
|
|
public String getLocation() { return location; }
|
|
public void setLocation(String location) { this.location = location; }
|
|
|
|
public String getContact() { return contact; }
|
|
public void setContact(String contact) { this.contact = contact; }
|
|
|
|
public long getPublishTime() { return publishTime; }
|
|
public void setPublishTime(long publishTime) { this.publishTime = publishTime; }
|
|
|
|
public String getUserId() { return userId; }
|
|
public void setUserId(String userId) { this.userId = userId; }
|
|
} |