stash/pkg/models/orientation.go

18 lines
363 B
Go

package models
type OrientationEnum string
const (
OrientationLandscape OrientationEnum = "LANDSCAPE"
OrientationPortrait OrientationEnum = "PORTRAIT"
OrientationSquare OrientationEnum = "SQUARE"
)
func (e OrientationEnum) IsValid() bool {
switch e {
case OrientationLandscape, OrientationPortrait, OrientationSquare:
return true
}
return false
}