woob.capabilities.messages
¶
- class Thread(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Thread containing messages.
- Variables:
- IS_THREADS = 1¶
- IS_DISCUSSION = 2¶
- class Message(thread=NotLoaded, id=NotLoaded, title=NotLoaded, sender=NotLoaded, receivers=NotLoaded, date=None, parent=NotLoaded, content=NotLoaded, signature=NotLoaded, children=NotLoaded, flags=0, url=None)[source]¶
Bases:
BaseObject
Represents a message read or to send.
- Variables:
url – (
str
) urlthread – (Thread) Reference to the thread
title – (
str
) Title of messagesender – (
str
) Author of this messagereceivers – (
list
) Receivers of the messagedate – (
date
,datetime
) Date when the message has been sentcontent – (
str
) Body of messagesignature – (
str
) Optional signatureparent – (Message) Parent message
children – (
list
) Children fieldsflags – (
int
) Flags (IS_* constants) (default: 0)
- IS_HTML = 1¶
The content is HTML formatted
- IS_UNREAD = 2¶
The message is unread
- IS_RECEIVED = 4¶
The receiver has read this message
- IS_NOT_RECEIVED = 8¶
The receiver hass not read this message
- property date_int¶
Date of message as an integer.
- property full_id¶
Full ID of message (in form ‘THREAD_ID.MESSAGE_ID’)
- property full_parent_id¶
Get the full ID of the parent message (in form ‘THREAD_ID.MESSAGE_ID’).
- class CapMessages[source]¶
Bases:
Capability
Capability to read messages.