mirror of
https://gitlab.com/comunic/comunicterm
synced 2024-10-04 22:12:44 +00:00
26 lines
328 B
C
26 lines
328 B
C
|
/**
|
||
|
* User helper
|
||
|
*
|
||
|
* @author Pierre HUBERT
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <map>
|
||
|
#include <vector>
|
||
|
|
||
|
#include <entities/user.h>
|
||
|
|
||
|
|
||
|
class UserHelper
|
||
|
{
|
||
|
public:
|
||
|
UserHelper();
|
||
|
|
||
|
static User GetSingle(int id);
|
||
|
static std::map<int, User> getMultiple(std::vector<int> ids);
|
||
|
|
||
|
private:
|
||
|
static std::map<int, User> mCache;
|
||
|
};
|