Пример #1
0
void main_menu_data_received(int packetId, DictionaryIterator* data)
{

	switch (packetId)
	{
	case 2:
		receivedGroupNames(data);
		break;

	}

}
Пример #2
0
void menu_data_received(int packetId, DictionaryIterator* data)
{
	switch (packetId)
	{
	case 0:
		numOfGroups = dict_find(data, 1)->value->uint8;
		skipGroupFiltering = dict_find(data, 2)->value->uint8 == 1;
		request_categories(0);
		break;
	case 1:
		receivedGroupNames(data);
		break;

	}

}