Skip to content

Commit 468c688

Browse files
committed
Add Windows call model
1 parent 2e865f8 commit 468c688

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/windows/WindowsCall.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)