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

Commit 8e68b95

Browse files
authored
Merge pull request #10 from Katistic/master
Internal docs
2 parents 3df5ad3 + 8875123 commit 8e68b95

File tree

3 files changed

+300
-93
lines changed

3 files changed

+300
-93
lines changed

vrcpy/aobjects.py

Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import vrcpy.objects as o
22
import vrcpy.types as types
33

4+
'''
5+
Please look at objects.py for object docs
6+
Everything is in the same place and does the same thing.
7+
8+
Thanks ~ Lazy me
9+
'''
10+
411
## Avatar
512

613
class Avatar(o.Avatar):
@@ -9,10 +16,6 @@ async def author(self):
916
return User(self.client, resp["data"])
1017

1118
async def favorite(self):
12-
'''
13-
Returns favorite object
14-
'''
15-
1619
resp = await self.client.api.call("/favorites", "POST", params={"type": types.FavoriteType.Avatar,\
1720
"favoriteId": self.id})
1821
return Favorite(resp["data"])
@@ -25,10 +28,6 @@ async def fetch_full(self):
2528
return User(self.client, resp["data"])
2629

2730
async def public_avatars(self):
28-
'''
29-
Returns array of Avatar objects owned by user object
30-
'''
31-
3231
resp = await self.client.api.call("/avatars",
3332
params={"userId": self.id})
3433

@@ -39,25 +38,13 @@ async def public_avatars(self):
3938
return avatars
4039

4140
async def unfriend(self):
42-
'''
43-
Returns void
44-
'''
45-
46-
resp = await self.client.api.call("/auth/user/friends/"+self.id, "DELETE")
41+
await self.client.api.call("/auth/user/friends/"+self.id, "DELETE")
4742

4843
async def friend(self):
49-
'''
50-
Returns Notification object
51-
'''
52-
5344
resp = await self.client.api.call("/user/"+self.id+"/friendRequest", "POST")
5445
return o.Notification(self.client, resp["data"])
5546

5647
async def favorite(self):
57-
'''
58-
Returns favorite object
59-
'''
60-
6148
resp = await self.client.api.call("/favorites", "POST", params={"type": types.FavoriteType.Friend,\
6249
"favoriteId": self.id})
6350
return Favorite(resp["data"])
@@ -114,13 +101,6 @@ async def update_info(self, email=None, status=None,\
114101
return self.client.me
115102

116103
async def avatars(self, releaseStatus=types.ReleaseStatus.All):
117-
'''
118-
Returns array of Avatar objects owned by the current user
119-
120-
releaseStatus, string
121-
One of types type.ReleaseStatus
122-
'''
123-
124104
resp = await self.client.api.call("/avatars",
125105
params={"releaseStatus": releaseStatus, "user": "me"})
126106

@@ -186,10 +166,6 @@ async def author(self):
186166
return User(self.client, resp["data"])
187167

188168
async def favorite(self):
189-
'''
190-
Returns favorite object
191-
'''
192-
193169
resp = await self.client.api.call("/favorites", "POST", params={"type": types.FavoriteType.World,\
194170
"favoriteId": self.id})
195171
return Favorite(resp["data"])
@@ -200,13 +176,6 @@ async def author(self):
200176
return resp
201177

202178
async def fetch_instance(self, id):
203-
'''
204-
Returns Instance object
205-
206-
id, str
207-
InstanceID of instance
208-
'''
209-
210179
resp = await self.client.api.call("/instances/"+self.id+":"+id)
211180
return Instance(self.client, resp["data"])
212181

0 commit comments

Comments
 (0)