lbry-sdk/lbry/schema/support.py

24 lines
532 B
Python
Raw Permalink Normal View History

2019-06-21 02:55:47 +02:00
from lbry.schema.base import Signable
2020-06-05 21:19:14 +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-05 21:19:14 +02:00
message_class = SupportMessage
@property
def emoji(self) -> str:
return self.message.emoji
@emoji.setter
def emoji(self, emoji: str):
self.message.emoji = emoji
@property
def comment(self) -> str:
return self.message.comment
@comment.setter
def comment(self, comment: str):
self.message.comment = comment