mirror of
https://gitlab.com/comunic/comunicterm
synced 2024-11-16 18:41:07 +00:00
27 lines
385 B
C++
27 lines
385 B
C++
/**
|
|
* User helper
|
|
*
|
|
* @author Pierre HUBERT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <map>
|
|
#include <vector>
|
|
#include <set>
|
|
|
|
#include <entities/user.h>
|
|
|
|
class UserHelper
|
|
{
|
|
public:
|
|
UserHelper();
|
|
|
|
static User GetSingle(int id);
|
|
static UsersList getMultiple(std::vector<int> ids);
|
|
static UsersList getMultiple(std::set<int> ids);
|
|
|
|
private:
|
|
static std::map<int, User> mCache;
|
|
};
|