1 parent 2e865f8 commit 468c688Copy full SHA for 468c688
1 file changed
src/windows/WindowsCall.java
@@ -0,0 +1,16 @@
1
+package windows;
2
+
3
+import java.time.Instant;
4
5
+/** Immutable record of a requested Windows operation. */
6
+public record WindowsCall(
7
+ String id,
8
+ WindowsCitizen citizen,
9
+ WindowsProgram program,
10
+ WindowsDirective directive,
11
+ Instant requestedAt) {
12
+ public WindowsCall {
13
+ if (id == null || id.isBlank()) throw new IllegalArgumentException("id is required");
14
+ if (requestedAt == null) throw new IllegalArgumentException("requestedAt is required");
15
+ }
16
+}
0 commit comments