private void UpdateShowStickersByEmojiSubtitle(ShowStickersByEmoji showStickers) { switch (showStickers) { case Telegram.Api.TL.ShowStickersByEmoji.AllSets: ShowStickersByEmojiSubtitle = AppResources.AllSets; break; case Telegram.Api.TL.ShowStickersByEmoji.MySets: ShowStickersByEmojiSubtitle = AppResources.MySets; break; case Telegram.Api.TL.ShowStickersByEmoji.None: ShowStickersByEmojiSubtitle = AppResources.None; break; } }
public override TLObject FromStream(Stream input) { HashValue = GetObject <TLInt>(input); Packs = GetObject <TLVector <TLStickerPack> >(input); Sets = GetObject <TLVector <TLStickerSetBase> >(input); Documents = GetObject <TLVector <TLDocumentBase> >(input); ShowStickersTab = GetNullableObject <TLBool>(input); RecentlyUsed = GetNullableObject <TLVector <TLRecentlyUsedSticker> >(input); Date = GetNullableObject <TLInt>(input); CustomFlags = GetNullableObject <TLLong>(input); RecentStickers = GetObject <TLRecentStickers>(CustomFlags, (int)AllStickersCustomFlags.RecentStickers, null, input); FavedStickers = GetObject <TLFavedStickers>(CustomFlags, (int)AllStickersCustomFlags.FavedStickers, null, input); _showStickersByEmoji = GetObject <TLInt>(CustomFlags, (int)AllStickersCustomFlags.ShowStickersByEmoji, null, input); // move showStickersTab flag to ShowStickersByEmoji flag if (ShowStickersTab != null && !ShowStickersTab.Value) { ShowStickersByEmoji = ShowStickersByEmoji.MySets; ShowStickersTab = TLBool.True; } return(this); }