2020-01-12 19:24:35 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
2020-01-12 20:15:51 +00:00
|
|
|
#include "helpers/userhelper.h"
|
2020-01-12 19:24:35 +00:00
|
|
|
#include "conversations_screen.h"
|
|
|
|
#include "helpers/conversationshelper.h"
|
|
|
|
#include "entities/conversation.h"
|
2020-01-12 20:15:51 +00:00
|
|
|
#include "entities/conversationslist.h"
|
2020-01-12 19:24:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
|
|
void showConversationsScreen()
|
|
|
|
{
|
2020-01-12 20:15:51 +00:00
|
|
|
|
2020-01-12 19:24:35 +00:00
|
|
|
auto list = ConversationsHelper::GetList();
|
2020-01-12 20:15:51 +00:00
|
|
|
auto users = UserHelper::getMultiple(list.usersList());
|
2020-01-12 19:24:35 +00:00
|
|
|
|
|
|
|
for(auto c : list)
|
2020-01-12 20:15:51 +00:00
|
|
|
cout << "Conv: " << c.name(users) << endl;
|
2020-01-12 19:24:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
cout << "done" << endl;
|
|
|
|
string s;
|
|
|
|
cin >> s;
|
|
|
|
}
|