dataview.h
1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#ifndef DATAVIEW_H
#define DATAVIEW_H
#include <QObject>
#include <QString>
class UserInfo : public QObject
{
public:
int uid;
QString user_name;
QString nick;
QString mobile;
int age;
int sex;
QString email;
int avatar;
int birthday;
int user_type;
QString code;
QString job;
QString interests;
int call_number;
int call_time;
int attentions;
int is_ishow;
};
class UserImage: QObject
{
public:
int file_id;
QString file_name;
QString ext;
QString url;
QString s_url;
int size;
};
class UserCredits: QObject
{
public:
float credits;//账号金额
float credits_used;//历史金额
float credits_freeze;//冻结金额
int taocan_today;//套餐今日总时长
int taocan_surplus;//套餐今日剩余时长
int taocan_tomorrow;//套餐明日总时长
int servertime;//服务器时间
int critical_time;//每日临界时间4点为例
};
class Teacher : public QObject
{
public:
int evaluation_times;//评价次数
int evaluation_total;//评价星级总数
float prices;//价格
QString education;//受教育情况
QString experience;//教学经验
QString profile;//自我简介
int online;//1:在线 2:忙碌 3:离线
int missed_call;//未接来电次数
QString skype;//skype账号
int crown;//皇冠
};
class Token : public QObject
{
public:
int uid;
QString token;
int over_time;
QString refresh_token;
int refresh_time;
QString loginname;
QString device_id;
QString ip;
int status;
};
class SigAuth : public QObject
{
public:
QString sig;
int expiry;
QString id;
QString nonce;
};
#endif // DATAVIEW_H