Skip to content

Commit 061c2f4

Browse files
committed
Add new view model for workspace
- UI needs to present a combination of properties from two data models (Workspace and WorkspaceAgent)
1 parent bd4ba24 commit 061c2f4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.coder.gateway.models
2+
3+
import com.coder.gateway.sdk.Arch
4+
import com.coder.gateway.sdk.OS
5+
import com.coder.gateway.sdk.v2.models.ProvisionerJobStatus
6+
import com.coder.gateway.sdk.v2.models.WorkspaceBuildTransition
7+
8+
data class WorkspaceAgentModel(
9+
val name: String,
10+
11+
val jobStatus: ProvisionerJobStatus,
12+
val buildTransition: WorkspaceBuildTransition,
13+
14+
val agentOS: OS?,
15+
val agentArch: Arch?
16+
)

0 commit comments

Comments
 (0)