Added arn to the main repository
This commit is contained in:
16
arn/HasDraft.go
Normal file
16
arn/HasDraft.go
Normal file
@ -0,0 +1,16 @@
|
||||
package arn
|
||||
|
||||
// HasDraft includes a boolean indicating whether the object is a draft.
|
||||
type hasDraft struct {
|
||||
IsDraft bool `json:"isDraft" editable:"true"`
|
||||
}
|
||||
|
||||
// GetIsDraft tells you whether the object is a draft or not.
|
||||
func (obj *hasDraft) GetIsDraft() bool {
|
||||
return obj.IsDraft
|
||||
}
|
||||
|
||||
// SetIsDraft sets the draft state for this object.
|
||||
func (obj *hasDraft) SetIsDraft(isDraft bool) {
|
||||
obj.IsDraft = isDraft
|
||||
}
|
Reference in New Issue
Block a user