initial commit
This commit is contained in:
19
model_workspace_reference.go
Normal file
19
model_workspace_reference.go
Normal file
@ -0,0 +1,19 @@
|
||||
package niri
|
||||
|
||||
type WorkspaceReferenceArg struct {
|
||||
ID *WorkspaceID `json:"Id,omitempty"`
|
||||
Index *int `json:"Index,omitempty"`
|
||||
Name *string `json:"Name,omitempty"`
|
||||
}
|
||||
|
||||
func WorkspaceByID(id WorkspaceID) WorkspaceReferenceArg {
|
||||
return WorkspaceReferenceArg{ID: &id}
|
||||
}
|
||||
|
||||
func WorkspaceByIndex(index int) WorkspaceReferenceArg {
|
||||
return WorkspaceReferenceArg{Index: &index}
|
||||
}
|
||||
|
||||
func WorkspaceByName(name string) WorkspaceReferenceArg {
|
||||
return WorkspaceReferenceArg{Name: &name}
|
||||
}
|
Reference in New Issue
Block a user