forked from rdmilligan/SaltwashAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigprovider.py
78 lines (58 loc) · 2.13 KB
/
configprovider.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright (C) 2015 Ross D Milligan
# GNU GENERAL PUBLIC LICENSE Version 3 (full notice can be found at https://github.com/rdmilligan/SaltwashAR)
import ConfigParser
class ConfigProvider:
def __init__(self):
self.config = ConfigParser.ConfigParser()
self.config.read('appsettings.ini')
@property
def animation(self):
return self.config.getboolean('Enhancements', 'Animation')
@property
def acting(self):
return self.config.getboolean('Features', 'Acting')
@property
def audio_classifier(self):
return self.config.getboolean('Features', 'AudioClassifier')
@property
def browser(self):
return self.config.getboolean('Features', 'Browser')
@property
def calculator(self):
return self.config.getboolean('Features', 'Calculator')
@property
def fruit_machine(self):
return self.config.getboolean('Features', 'FruitMachine')
@property
def hand_gesture(self):
return self.config.getboolean('Features', 'HandGesture')
@property
def happy_colour(self):
return self.config.getboolean('Features', 'HappyColour')
@property
def iris_classifier(self):
return self.config.getboolean('Features', 'IrisClassifier')
@property
def mixing_desk(self):
return self.config.getboolean('Features', 'MixingDesk')
@property
def optical_character_recognition(self):
return self.config.getboolean('Features', 'OpticalCharacterRecognition')
@property
def phrase_translation(self):
return self.config.getboolean('Features', 'PhraseTranslation')
@property
def play_your_cards_right(self):
return self.config.getboolean('Features', 'PlayYourCardsRight')
@property
def shapes(self):
return self.config.getboolean('Features', 'Shapes')
@property
def slideshow(self):
return self.config.getboolean('Features', 'Slideshow')
@property
def television(self):
return self.config.getboolean('Features', 'Television')
@property
def weather(self):
return self.config.getboolean('Features', 'Weather')