mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-15 18:28:47 +00:00
38 lines
868 B
Java
38 lines
868 B
Java
package com.example.listify.data;
|
|
|
|
public class ListShare {
|
|
Integer listID;
|
|
String shareWithEmail;
|
|
ArrayList<ListShare> other;
|
|
|
|
public ListShare(ResultSet listRow) throws SQLException {
|
|
this.listID = listRow.getInt("listID");
|
|
this.shareWithEmail = listRow.getString("userID");
|
|
other = new ArrayList<>();
|
|
}
|
|
|
|
public Integer getListID() {
|
|
return listID;
|
|
}
|
|
|
|
public void setListID(Integer listID) {
|
|
this.listID = listID;
|
|
}
|
|
|
|
public String getShareWithEmail() {
|
|
return shareWithEmail;
|
|
}
|
|
|
|
public void setShareWithEmail(String shareWithEmail) {
|
|
this.shareWithEmail = shareWithEmail;
|
|
}
|
|
|
|
public ListShare[] getEntries() {
|
|
return other.toArray(new ListShare[other.size()]);
|
|
}
|
|
|
|
public void addtoList(ListShare entry) {
|
|
other.add(entry);
|
|
}
|
|
}
|