mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2026-04-25 13:55:04 +00:00
Wrote the Lambdas API for getting and deleting list sharees -- testing still needed
This commit is contained in:
@@ -67,10 +67,6 @@ public class List {
|
||||
this.lastUpdated = lastUpdated;
|
||||
}
|
||||
|
||||
public ListEntry[] getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public boolean isShared() {
|
||||
return shared;
|
||||
}
|
||||
@@ -78,4 +74,8 @@ public class List {
|
||||
public void setShared(boolean shared) {
|
||||
this.shared = shared;
|
||||
}
|
||||
|
||||
public ListEntry[] getEntries() {
|
||||
return entries;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,10 +3,18 @@ package com.example.listify.data;
|
||||
public class ListShare {
|
||||
Integer listID;
|
||||
String shareWithEmail;
|
||||
final ListShare[] other;
|
||||
|
||||
public ListShare(Integer listID, String shareWithEmail, ListShare[] other) {
|
||||
this.listID = listID;
|
||||
this.shareWithEmail = shareWithEmail;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
public ListShare(Integer listID, String shareWithEmail) {
|
||||
this.listID = listID;
|
||||
this.shareWithEmail = shareWithEmail;
|
||||
this.other = null;
|
||||
}
|
||||
|
||||
public Integer getListID() {
|
||||
@@ -24,4 +32,8 @@ public class ListShare {
|
||||
public void setShareWithEmail(String shareWithEmail) {
|
||||
this.shareWithEmail = shareWithEmail;
|
||||
}
|
||||
|
||||
public ListShare[] getEntries() {
|
||||
return other;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user