def _decode(self, buffer: MPData, category, skip): if category == 1: if not hasattr(self, 'pages'): self.pages = [] self.pages.append(Page(buffer, buffer.uint32())) elif category == 2: self.chapter_id = buffer.uint32() elif category == 3: if not hasattr(self, 'chapters'): self.chapters = [] self.chapters.append(Chapter(buffer, buffer.uint32())) elif category == 4: self.sns_info = SNS(buffer, buffer.uint32()) elif category == 5: self.title_name = buffer.string() elif category == 6: self.chapter_name = buffer.string() elif category == 7: self.number_of_comments = buffer.uint32() elif category == 8: self.is_vertical_only = buffer.boolean() elif category == 9: self.title_id = buffer.uint32() elif category == 10: self.start_from_right = buffer.boolean() elif category == 11: self.region_code = buffer.string() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.title = buffer.string() elif category == 2: self.body = buffer.string() elif category == 3: self.date = buffer.int32() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.image = buffer.string() elif category == 2: self.width = buffer.uint32() elif category == 3: self.height = buffer.uint32() elif category == 4: self.type = buffer.int32() elif category == 5: self.encryption_key = buffer.string() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.subject = buffer.string() elif category == 2: self.body = buffer.string() elif category == 3: self.ok_button = Button(buffer, buffer.uint32()) elif category == 4: self.neutral_button = Button(buffer, buffer.uint32()) elif category == 5: self.cancel_button = Button(buffer, buffer.uint32()) else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.title = Title(buffer, buffer.uint32()) elif category == 2: self.chapter_id = buffer.uint32() elif category == 3: self.chapter_name = buffer.string() elif category == 4: self.chapter_sub_title = buffer.string() elif category == 5: self.is_latest = buffer.boolean() elif category == 6: self.is_vertical_only = buffer.boolean() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.text = buffer.string() elif category == 2: self.action = TransitionAction(buffer, buffer.uint32()) else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.id = buffer.uint32() elif category == 2: self.image_url = buffer.string() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.banner_title = buffer.string() elif category == 2: if not hasattr(self, 'banners'): self.banners = [] self.banners.append(Banner(buffer, buffer.uint32())) else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.time_stamp = buffer.uint32() elif category == 2: self.body = buffer.string() elif category == 3: self.response_type = buffer.int32() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.group_name = buffer.string() elif category == 2: if not hasattr(self, 'titles'): self.titles = [] self.titles.append(UpdatedTitle(buffer, buffer.uint32())) else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.list_name = buffer.string() elif category == 2: if not hasattr(self, 'featured_titles'): self.featured_titles = [] self.featured_titles.append(Title(buffer, buffer.uint32())) else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: if not hasattr(self, 'icon_list'): self.icon_list = [] self.icon_list.append(CommentIcon(buffer, buffer.uint32())) elif category == 2: self.user_name = buffer.string() elif category == 3: self.my_icon = CommentIcon(buffer, buffer.uint32()) else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.action = buffer.int32() elif category == 2: self.english_popup = OSDefault(buffer, buffer.uint32()) elif category == 3: self.spanish_popup = OSDefault(buffer, buffer.uint32()) elif category == 4: self.debug_info = buffer.string() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.id = buffer.uint32() elif category == 2: self.index = buffer.uint32() elif category == 3: self.username = buffer.string() elif category == 4: self.icon_url = buffer.string() elif category == 6: self.is_my_comment = buffer.boolean() elif category == 7: self.already_liked = buffer.boolean() elif category == 9: self.number_of_likes = buffer.uint32() elif category == 10: self.body = buffer.string() elif category == 11: self.created = buffer.uint32() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.my_icon = CommentIcon(buffer, buffer.uint32()) elif category == 2: self.user_name = buffer.string() elif category == 3: self.notice_of_news_and_events = buffer.boolean() elif category == 4: self.notice_of_updates_of_subscribed_titles = buffer.boolean() elif category == 5: self.english_titles_count = buffer.uint32() elif category == 6: self.spanish_titles_count = buffer.uint32() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.placement_id = buffer.string() else: buffer.skip_type(skip)
def _decode(self, buffer: MPData, category, skip): if category == 1: self.device_secret = buffer.string() else: buffer.skip_type(skip)