-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into enhancement/283-add-r…
…oom-search-to-quick-actions
- Loading branch information
Showing
48 changed files
with
731 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:campus_flutter/base/extensions/date_time.dart'; | ||
|
||
sealed class EatApiEndpoint {} | ||
|
||
class EatApiEndpointCanteens extends EatApiEndpoint {} | ||
|
||
class EatApiEndpointLanguages extends EatApiEndpoint {} | ||
|
||
class EatApiEndpointLabels extends EatApiEndpoint {} | ||
|
||
class EatApiEndpointAll extends EatApiEndpoint {} | ||
|
||
class EatApiEndpointAllRef extends EatApiEndpoint {} | ||
|
||
class EatApiEndpointMenu extends EatApiEndpoint { | ||
final String location; | ||
final int year; | ||
final String week; | ||
|
||
EatApiEndpointMenu({required this.location, int? year, String? week}) | ||
: year = year ?? DateTime.now().year, | ||
week = week ?? DateTime.now().weekNumber(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:campus_flutter/base/networking/apis/irisApi/iris_api_endpoint.dart'; | ||
import 'package:campus_flutter/base/networking/protocols/api.dart'; | ||
|
||
class IrisApi extends Api { | ||
final IrisApiEndpoint irisApiEndpoint; | ||
|
||
IrisApi({required this.irisApiEndpoint}); | ||
|
||
@override | ||
String get domain => "iris.asta.tum.de"; | ||
|
||
@override | ||
bool get needsAuth => false; | ||
|
||
@override | ||
Map<String, String> get parameters => irisApiEndpoint.getParameters(); | ||
|
||
@override | ||
String get path => ""; | ||
|
||
@override | ||
String get slug => "api"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sealed class IrisApiEndpoint { | ||
Map<String, String> getParameters() => {}; | ||
} | ||
|
||
class IrisApiEndpointRooms extends IrisApiEndpoint {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.