Commit 01572c5
refactor: Update ProtoUtils to use StreamResponseMapper
Updated ProtoUtils.ToProto and ProtoUtils.FromProto to delegate to the new
StreamResponseMapper instead of using manual instanceof checks.
Changes:
- ToProto.streamResponse(): Now delegates to StreamResponseMapper.toProto()
instead of manual instanceof pattern matching (removed 20 lines of code)
- FromProto.streamingEventKind(): New method that delegates to
StreamResponseMapper.fromProto() for converting proto StreamResponse
back to domain StreamingEventKind
- Added import for StreamResponseMapper
This centralizes the conversion logic in the mapper, making the code more
maintainable and consistent with the existing mapper pattern used throughout
the codebase.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 3342383 commit 01572c5
1 file changed
+9
-20
lines changedLines changed: 9 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 126 | + | |
145 | 127 | | |
146 | 128 | | |
147 | 129 | | |
| |||
307 | 289 | | |
308 | 290 | | |
309 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
310 | 299 | | |
311 | 300 | | |
312 | 301 | | |
0 commit comments