-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into chore/communication/migrate-metis-service…
…-to-standalone
- Loading branch information
Showing
68 changed files
with
1,059 additions
and
152 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
6 changes: 6 additions & 0 deletions
6
src/main/java/de/tum/cit/aet/artemis/buildagent/dto/DockerFlagsDTO.java
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,6 @@ | ||
package de.tum.cit.aet.artemis.buildagent.dto; | ||
|
||
import java.util.Map; | ||
|
||
public record DockerFlagsDTO(String network, Map<String, String> env) { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/de/tum/cit/aet/artemis/buildagent/dto/DockerRunConfig.java
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,7 @@ | ||
package de.tum.cit.aet.artemis.buildagent.dto; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public record DockerRunConfig(boolean isNetworkDisabled, List<String> env) implements Serializable { | ||
} |
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
23 changes: 23 additions & 0 deletions
23
...e/tum/cit/aet/artemis/communication/domain/push_notification/PushNotificationApiType.java
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 @@ | ||
package de.tum.cit.aet.artemis.communication.domain.push_notification; | ||
|
||
import java.util.Arrays; | ||
|
||
public enum PushNotificationApiType { | ||
|
||
DEFAULT((short) 0), IOS_V2((short) 1); | ||
|
||
private final short databaseKey; | ||
|
||
PushNotificationApiType(short databaseKey) { | ||
this.databaseKey = databaseKey; | ||
} | ||
|
||
public short getDatabaseKey() { | ||
return databaseKey; | ||
} | ||
|
||
public static PushNotificationApiType fromDatabaseKey(short databaseKey) { | ||
return Arrays.stream(PushNotificationApiType.values()).filter(type -> type.getDatabaseKey() == databaseKey).findFirst() | ||
.orElseThrow(() -> new IllegalArgumentException("Unknown database key: " + databaseKey)); | ||
} | ||
} |
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
7 changes: 6 additions & 1 deletion
7
src/main/java/de/tum/cit/aet/artemis/communication/dto/PushNotificationRegisterBody.java
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
package de.tum.cit.aet.artemis.communication.dto; | ||
|
||
import de.tum.cit.aet.artemis.communication.domain.push_notification.PushNotificationApiType; | ||
import de.tum.cit.aet.artemis.communication.domain.push_notification.PushNotificationDeviceType; | ||
|
||
public record PushNotificationRegisterBody(String token, PushNotificationDeviceType deviceType) { | ||
public record PushNotificationRegisterBody(String token, PushNotificationDeviceType deviceType, PushNotificationApiType apiType) { | ||
|
||
public PushNotificationRegisterBody(String token, PushNotificationDeviceType deviceType) { | ||
this(token, deviceType, PushNotificationApiType.DEFAULT); | ||
} | ||
} |
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.