|
|
|
@ -139,8 +139,8 @@ class NetworkData(object):
|
|
|
|
|
"""Message timestamp (as a datetime object). Defaults to None. |
|
|
|
|
*Optional*""" |
|
|
|
|
|
|
|
|
|
self.favourite = False |
|
|
|
|
"""Boolean indicating if the message was marked as "favourite" or not. |
|
|
|
|
self.favorite = False |
|
|
|
|
"""Boolean indicating if the message was marked as "favorite" or not. |
|
|
|
|
*Optional*""" |
|
|
|
|
|
|
|
|
|
self.parent = None |
|
|
|
@ -268,8 +268,8 @@ class NetworkBase(object):
|
|
|
|
|
# anyway? |
|
|
|
|
return None |
|
|
|
|
|
|
|
|
|
def favourite(self, message): |
|
|
|
|
"""Toggle the favourite status of a message. *message* must be a valid |
|
|
|
|
def favorite(self, message): |
|
|
|
|
"""Toggle the favorite status of a message. *message* must be a valid |
|
|
|
|
:class:`NetworkData` object. Returns True if the request was |
|
|
|
|
successful or False otherwise.""" |
|
|
|
|
# TODO: Again, if errors appear as exceptions, why return something? |
|
|
|
@ -301,4 +301,4 @@ class NetworkBase(object):
|
|
|
|
|
"""Return the number of requests the user can request before being |
|
|
|
|
capped. If such limitation doesn't exist for the network, a negative |
|
|
|
|
number should be returned.""" |
|
|
|
|
return -1 |
|
|
|
|
return -1 |
|
|
|
|