bool MessagesChatFull::fetch(InboundPkt *in) { LQTG_FETCH_LOG; int x = in->fetchInt(); switch(x) { case typeMessagesChatFull: { m_fullChat.fetch(in); if(in->fetchInt() != (qint32)CoreTypes::typeVector) return false; qint32 m_chats_length = in->fetchInt(); m_chats.clear(); for (qint32 i = 0; i < m_chats_length; i++) { Chat type; type.fetch(in); m_chats.append(type); } if(in->fetchInt() != (qint32)CoreTypes::typeVector) return false; qint32 m_users_length = in->fetchInt(); m_users.clear(); for (qint32 i = 0; i < m_users_length; i++) { User type; type.fetch(in); m_users.append(type); } m_classType = static_cast<MessagesChatFullType>(x); return true; } break; default: LQTG_FETCH_ASSERT; return false; } }