Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit 003383e

Browse files
committed
FavoriteGroup object
1 parent 79e2302 commit 003383e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

vrcpy/favorite.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,46 @@
22

33
import logging
44

5+
class FavoriteGroup(BaseObject):
6+
def __init__(self, client, obj, loop=None):
7+
super().__init__(client, loop)
8+
9+
self.required.update({
10+
"display_name": {
11+
"dict_key": "displayName",
12+
"type": str
13+
},
14+
"id": {
15+
"dict_key": "id",
16+
"type": str
17+
},
18+
"name": {
19+
"dict_key": "name",
20+
"type": str
21+
},
22+
"owner_display_name": {
23+
"dict_key": "ownerDisplayName",
24+
"type": str
25+
},
26+
"owner_id": {
27+
"dict_key": "ownerId",
28+
"type": str
29+
},
30+
"tags": {
31+
"dict_key": "tags",
32+
"type": list
33+
},
34+
"type": {
35+
"dict_key": "type",
36+
"type": str
37+
},
38+
"visibility": {
39+
"dict_key": "visibility",
40+
"type": str
41+
}
42+
})
43+
44+
self._assign(obj)
545

646
class BaseFavorite(BaseObject):
747
def __init__(self, client, obj, loop=None):

0 commit comments

Comments
 (0)