This repository was archived by the owner on Dec 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed
Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1+ # v0.4.3
2+
3+ * Add conversation name field to ` Conversation ` and name update custom content
4+ to ` MessageCustomContent ` .
5+
16# v0.4.2
27
38* Explicitly specify the timeout of each event stream connection to help avoid
Original file line number Diff line number Diff line change 22from .api_objects import URN
33
44__title__ = "linkedin_messaging"
5- __version__ = "0.4.2 "
5+ __version__ = "0.4.3 "
66__description__ = "An unofficial API for interacting with LinkedIn Messaging"
77
88__license__ = "MIT"
Original file line number Diff line number Diff line change @@ -241,12 +241,18 @@ class SpInmailContent:
241241 sub_content : Optional [SpInmailSubContent ] = None
242242
243243
244+ @dataclass_json (letter_case = LetterCase .CAMEL , undefined = Undefined .EXCLUDE )
245+ @dataclass
246+ class ConversationNameUpdateContent :
247+ new_name : str = ""
248+
249+
244250@dataclass_json (letter_case = LetterCase .CAMEL , undefined = Undefined .EXCLUDE )
245251@dataclass
246252class MessageCustomContent :
247- third_party_media : Optional [ThirdPartyMedia ] = field (
253+ conversation_name_update_content : Optional [ConversationNameUpdateContent ] = field (
248254 metadata = config (
249- field_name = "com.linkedin.voyager.messaging.shared.ThirdPartyMedia"
255+ field_name = "com.linkedin.voyager.messaging.event.message.ConversationNameUpdateContent" # noqa: E501
250256 ),
251257 default = None ,
252258 )
@@ -256,6 +262,12 @@ class MessageCustomContent:
256262 ),
257263 default = None ,
258264 )
265+ third_party_media : Optional [ThirdPartyMedia ] = field (
266+ metadata = config (
267+ field_name = "com.linkedin.voyager.messaging.shared.ThirdPartyMedia"
268+ ),
269+ default = None ,
270+ )
259271
260272
261273@dataclass_json (letter_case = LetterCase .CAMEL , undefined = Undefined .EXCLUDE )
@@ -326,6 +338,7 @@ class Conversation:
326338 unread_count : int = 0
327339 last_activity_at : Optional [datetime ] = None
328340 entity_urn : Optional [URN ] = None
341+ name : str = ""
329342 muted : bool = False
330343 events : list [ConversationEvent ] = field (default_factory = list )
331344 participants : list [Participant ] = field (default_factory = list )
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " linkedin_messaging"
3- version = " 0.4.2 "
3+ version = " 0.4.3 "
44description = " An unofficial API for interacting with LinkedIn Messaging"
55authors = [" Sumner Evans <inquiries@sumnerevans.com>" ]
66license = " Apache-2.0"
You can’t perform that action at this time.
0 commit comments