rename to one trip

This commit is contained in:
Alexander Laevens
2022-11-26 00:25:22 -07:00
parent 839147e0b0
commit 25e1a42392
207 changed files with 8015 additions and 245 deletions

View File

@@ -37,8 +37,7 @@ class HomegroupInvite {
return null;
}
static Future<HomegroupInvite?> createInvite(
int homegroupID, int userID) async {
static Future<HomegroupInvite?> create(int homegroupID, int userID) async {
String requestURL = "$baseURL/api/groupinvites/";
String token = TokenSingleton().getToken();
final http.Response response = await http.post(
@@ -54,7 +53,7 @@ class HomegroupInvite {
return null;
}
Future<bool> deleteInvite() async {
Future<bool> delete() async {
String requestURL = "$baseURL/api/groupinvites/$id/";
String token = TokenSingleton().getToken();
final http.Response response = await http.delete(