-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ForkStatus): returns status=NOT_AVAILABLE when channel to a chan…
…nel is not established
- Loading branch information
1 parent
4d377b6
commit e6c46f9
Showing
6 changed files
with
89 additions
and
26 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
7 changes: 7 additions & 0 deletions
7
src/main/java/uk/ac/ic/doc/blocc/dashboard/forkstatus/model/ForkStatus.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 uk.ac.ic.doc.blocc.dashboard.forkstatus.model; | ||
|
||
public enum ForkStatus { | ||
FORKED, | ||
NORMAL, | ||
NOT_AVAILABLE | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/uk/ac/ic/doc/blocc/dashboard/forkstatus/model/ForkStatusResponse.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,14 @@ | ||
package uk.ac.ic.doc.blocc.dashboard.forkstatus.model; | ||
|
||
public class ForkStatusResponse { | ||
|
||
private final ForkStatus status; | ||
|
||
public ForkStatusResponse(ForkStatus forkStatus) { | ||
status = forkStatus; | ||
} | ||
|
||
public ForkStatus getStatus() { | ||
return status; | ||
} | ||
} |
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