Skip to content

Commit 319de0e

Browse files
committed
Images patch
1 parent 698ac33 commit 319de0e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/recnetpy/dataclasses/image.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class Image(BaseDataClass['ImageResponse']):
2929
#: This is an image's unique identifier.
3030
id: int
3131
#: This is the type of image which has the possible value of ``[None, 'Share Camera', 'Outfit Thumbnail', 'Room Thumbnail', 'Profile Thumbnail', 'Invention Thumbnail', 'Player Event Thumbnail', 'Room Load Screen']``.
32-
type: str
32+
#type: str
3333
#: This is the visibilty of the image which has the possible value of ``['Private', 'Public', 'Unlisted']``.
34-
accessibility: str
34+
#accessibility: str
3535
#: This is true if the accessiblity of the image is fixed, false if its able to able to be changed.
36-
accessibility_locked: bool
36+
#accessibility_locked: bool
3737
#: This is the file name of the image itself.
3838
image_name: str
3939
#: This is the description of the image.
@@ -75,9 +75,9 @@ def patch_data(self, data: 'ImageResponse') -> None:
7575
"""
7676
self.data = data
7777
self.id = data['Id']
78-
self.type = IMAGE_TYPE.get(data['Type'], "Unknown")
79-
self.accessibility = ACCESSIBILITY_DICT.get(data['Accessibility'], "Unknown")
80-
self.accessibility_locked = data['AccessibilityLocked']
78+
#self.type = IMAGE_TYPE.get(data['Type'], "Unknown")
79+
#self.accessibility = ACCESSIBILITY_DICT.get(data['Accessibility'], "Unknown")
80+
#self.accessibility_locked = data['AccessibilityLocked']
8181
self.image_name = data['ImageName']
8282
self.description = data['Description']
8383
self.player_id = data['PlayerId']

src/recnetpy/misc/api_responses.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ class ImageResponse(TypedDict):
9595
- POST https://apim.rec.net/public/apis/api/images/v3/bulk
9696
"""
9797
Id: int
98-
Type: int
99-
Accessibility: int # 0 = private, 1 = public
100-
AccessibilityLocked: bool
98+
#Type: int
99+
#Accessibility: int # 0 = private, 1 = public
100+
#AccessibilityLocked: bool
101101
ImageName: str
102102
Description: Optional[str]
103103
PlayerId: int

0 commit comments

Comments
 (0)