forked from devoteam-cybertrust/droidstatx
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathIntentFilter.py
More file actions
34 lines (25 loc) · 817 Bytes
/
IntentFilter.py
File metadata and controls
34 lines (25 loc) · 817 Bytes
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
class IntentFilter:
actionList = []
categoryList = []
dataList = []
def __init__(self):
self.actionList = []
self.categoryList = []
self.dataList = []
def __repr__(self):
return "IntentFilter [action: {}] [category: {}] [data: {}]".format(
", ".join(self.actionList),
", ".join(self.categoryList),
", ".join(self.dataList))
def addAction(self, action):
self.actionList.append(action)
def addCategory(self, category):
self.categoryList.append(category)
def addData(self, data):
self.dataList.append(data)
def getActionList(self):
return self.actionList
def getCategoryList(self):
return self.categoryList
def getDataList(self):
return self.dataList