19 lines
468 B
Python
19 lines
468 B
Python
from lbry.schema.base import Signable
|
|
from lbry.schema.types.v2.support_pb2 import Support as SupportMessage
|
|
|
|
|
|
class Support(Signable):
|
|
__slots__ = ()
|
|
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
|