Wrote the Lambdas API for getting and deleting list sharees -- testing still needed

This commit is contained in:
Aaron Sun
2020-11-15 12:04:04 -08:00
parent 36ef81ce16
commit 5f14d24625
8 changed files with 189 additions and 12 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}
}