lbry-sdk/lbry/schema/support.py

20 lines
468 B
Python
Raw Normal View History

2019-06-21 02:55:47 +02:00
from lbry.schema.base import Signable
2020-06-19 20:28:34 +02:00
from lbry.schema.types.v2.support_pb2 import Support as SupportMessage
2019-03-20 06:46:23 +01:00
class Support(Signable):
__slots__ = ()
2020-06-19 20:28:34 +02:00
message_class = SupportMessage
def __init__(self, emoji='👍', message=None):
super().__init__(message)
self.emoji = emoji
@property
def emoji(self) -> str:
return self.message.emoji
@emoji.setter
def emoji(self, emoji: str):
self.message.emoji = emoji