attributes.py (831B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\cosmetics\client\character\title\model\definition\attributes.py 2 from cosmetics.client.character.title.model.flatbuffer.generated import Title as FlatbufferTitle 3 4 class TitleAttributes(object): 5 6 def __init__(self, localized_name): 7 self._localized_name = localized_name 8 9 @property 10 def localized_name(self): 11 return self._localized_name 12 13 @classmethod 14 def from_flatbuffer(cls, fb_data): 15 return TitleAttributes(localized_name=fb_data.LocalizedName().decode('utf-8')) 16 17 def __eq__(self, other): 18 return self.localized_name == other.localized_name 19 20 def __ne__(self, other): 21 return not self.__eq__(other) 22 23 def __str__(self): 24 return 'localized_name: %s\n' % self.localized_name