-
Notifications
You must be signed in to change notification settings - Fork 1
/
enum_params.py
46 lines (34 loc) · 912 Bytes
/
enum_params.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from enum import Enum
class CustomEnum(Enum):
@classmethod
def get_values(cls):
return [e.value for e in cls]
class ImageType(CustomEnum):
photo = 'photo'
clipart = 'clipart'
sketch = 'line'
transparent = 'transparent'
shopping = 'shopping' # needs more tests
animated_gif = 'animatedGif'
animated_gif_secure = 'animatedGifHttps'
all_content = 'all'
class ImageContent(CustomEnum):
face = 'face'
portrait = 'portrait'
any_content = 'any'
class ImageSize(CustomEnum):
large = 'large'
medium = 'medium'
small = 'small'
wallpaper = 'wallpaper'
all_content = 'all'
class ImageColor(CustomEnum):
color_only = 'colorOnly'
monochrome = 'monochrome'
all_content = 'all'
# TODO: add accent color options
class Aspect(CustomEnum):
square = 'square'
wide = 'wide'
tall = 'tall'
all_content = 'all'