mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
ref: change message attributes
This commit is contained in:
@@ -51,7 +51,9 @@ enum TypeClientAutorization{
|
||||
enum UserType
|
||||
{
|
||||
INSTRUCTOR,
|
||||
TRAINEE
|
||||
TRAINEE,
|
||||
|
||||
NONE = 100
|
||||
};
|
||||
|
||||
class ClientAutorization
|
||||
@@ -104,18 +106,20 @@ public:
|
||||
class ClientMessage
|
||||
{
|
||||
public:
|
||||
QString From;
|
||||
QString To;
|
||||
QString From;//формат"id-type"
|
||||
QString To;//формат"id-type"
|
||||
QString Text;
|
||||
QString Type; //ТИП ЮЗЕРА К КОТОРОМУ ПРИХОДИТ СООБЩЕНИЕ
|
||||
|
||||
//id-0 инструктор
|
||||
//id-1 обучаемый
|
||||
|
||||
ClientMessage(){}
|
||||
ClientMessage(QString from,QString to,QString text,QString userType)
|
||||
ClientMessage(QString from,QString to,QString text)
|
||||
{
|
||||
From = from;
|
||||
To = to;
|
||||
Text = text;
|
||||
Type = userType;
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user