1#TelegramTypeObjects
2
3include <QString>;
4include <QStringList>;
5include <QtQml>;
6include <QFile>;
7include <types/types.h>;
8include <types/decryptedmessage.h>;
9include "../photosizelist.h";
10include "../chatparticipantlist.h";
11
12object Download {
13    qint64 fileId rw = 0;
14    QString location rw;
15    qint32 mtime rw = 0;
16    qint32 partId rw = 0;
17    qint32 downloaded rw = 0;
18    qint32 total rw = 0;
19    QFile* file rw = new QFile(this);
20}
21
22object Upload {
23    qint64 fileId rw = 0;
24    QString location rw;
25    qint32 partId rw = 0;
26    qint32 uploaded rw = 0;
27    qint32 totalSize rw = 0;
28}
29
30object FileLocation {
31    DownloadObject* download rw = new DownloadObject(this);
32    qint64 id rw = 0;
33    QString fileName rw;
34    QString mimeType rw;
35    qint32 localId rw = another.%name();
36    qint64 secret rw = another.%name();
37    qint32 dcId rw = another.%name();
38    qint64 accessHash rw = 0;
39    qint64 volumeId rw = another.%name();
40    quint32 classType rw = another.%name();
41}
42
43object Peer {
44    qint32 chatId rw = another.%name();
45    qint32 userId rw = another.%name();
46    quint32 classType rw = another.%name();
47}
48
49object Contact {
50    qint32 userId rw = another.%name();
51    bool mutual rw = another.%name();
52    quint32 classType rw = another.%name();
53}
54
55object InputPeer {
56    qint32 chatId rw = another.%name();
57    qint32 userId rw = another.%name();
58    qint64 accessHash rw = another.%name();
59    quint32 classType rw = another.%name();
60}
61
62object UserStatus {
63    qint32 wasOnline rw = another.%name();
64    qint32 expires rw = another.%name();
65    quint32 classType rw = another.%name();
66}
67
68object GeoPoint {
69    double longitude rw = another.%name();
70    double lat rw = another.%name();
71    quint32 classType rw = another.%name();
72}
73
74object PeerNotifySettings {
75    qint32 muteUntil rw = another.%name();
76    qint32 eventsMask rw = another.%name();
77    QString sound rw = another.%name();
78    bool showPreviews rw = another.%name();
79    quint32 classType rw = another.%name();
80}
81
82object ContactsMyLink {
83    bool contact rw = another.%name();
84    quint32 classType = another.%name();
85}
86
87object EncryptedFile {
88    qint32 dcId rw = another.%name();
89    qint64 id rw = another.%name();
90    qint32 keyFingerprint rw = another.%name();
91    qint32 size rw = another.%name();
92    qint64 accessHash rw = another.%name();
93    quint32 classType rw = another.%name();
94}
95
96object EncryptedChat {
97    qint32 id rw = another.%name();
98    QByteArray gA rw = another.%name();
99    qint64 keyFingerprint rw = another.%name();
100    qint32 date rw = another.%name();
101    qint64 accessHash rw = another.%name();
102    qint32 adminId rw = another.%name();
103    QByteArray gAOrB rw = another.%name();
104    qint32 participantId rw = another.%name();
105    quint32 classType rw = another.%name();
106}
107
108object EncryptedMessage {
109    qint32 chatId rw = another.%name();
110    qint32 date rw = another.%name();
111    qint64 randomId rw = another.%name();
112    EncryptedFileObject* file rw = new EncryptedFileObject(another.%name(), this);
113    QByteArray bytes rw = another.%name();
114    quint32 classType rw = another.%name();
115}
116
117object ContactLink {
118    bool hasPhone rw = another.%name();
119    quint32 classType rw = another.%name();
120}
121
122object NotifyPeer {
123    PeerObject* peer rw = new PeerObject(another.%name(), this);
124    quint32 classType rw = another.%name();
125}
126
127object ChatParticipant {
128    qint32 userId rw = another.%name();
129    qint32 date rw = another.%name();
130    qint32 inviterId rw = another.%name();
131    quint32 classType rw = another.%name();
132}
133
134object ChatParticipants {
135    ChatParticipantList* participants rw = new ChatParticipantList(another.%name(), this);
136    qint32 chatId rw = another.%name();
137    qint32 version rw = another.%name();
138    qint32 adminId rw = another.%name();
139    quint32 classType rw = another.%name();
140}
141
142object PhotoSize {
143    qint32 h rw = another.%name();
144    QString type rw = another.%name();
145    QByteArray bytes rw = another.%name();
146    FileLocationObject* location rw = new FileLocationObject(another.%name(), this);
147    qint32 size rw = another.%name();
148    qint32 w rw = another.%name();
149    quint32 classType rw = another.%name();
150}
151
152object Audio {
153    qint64 id rw = another.%name();
154    qint32 dcId rw = another.%name();
155    QString mimeType rw = another.%name();
156    qint32 duration rw = another.%name();
157    qint32 date rw = another.%name();
158    qint32 size rw = another.%name();
159    qint64 accessHash rw = another.%name();
160    qint32 userId rw = another.%name();
161    quint32 classType rw = another.%name();
162}
163
164object Document {
165    qint64 id rw = another.%name();
166    qint32 dcId rw = another.%name();
167    QString mimeType rw = another.%name();
168    PhotoSizeObject* thumb rw = new PhotoSizeObject(another.%name(), this);
169    qint32 date rw = another.%name();
170    QString fileName rw = another.%name();
171    qint64 accessHash rw = another.%name();
172    qint32 userId rw = another.%name();
173    qint32 size rw = another.%name();
174    QByteArray encryptKey rw = QByteArray();
175    QByteArray encryptIv rw = QByteArray();
176    quint32 classType rw = another.%name();
177}
178
179object Video {
180    qint64 id rw = another.%name();
181    qint32 dcId rw = another.%name();
182    QString caption rw = another.%name();
183    QString mimeType rw = another.%name();
184    qint32 date rw = another.%name();
185    PhotoSizeObject* thumb rw = new PhotoSizeObject(another.%name(), this);
186    qint32 duration rw = another.%name();
187    qint32 h rw = another.%name();
188    qint32 size rw = another.%name();
189    qint64 accessHash rw = another.%name();
190    qint32 userId rw = another.%name();
191    qint32 w rw = another.%name();
192    quint32 classType rw = another.%name();
193}
194
195object Photo {
196    qint64 id rw = another.%name();
197    QString caption rw = another.%name();
198    qint32 date rw = another.%name();
199    PhotoSizeList* sizes rw = new PhotoSizeList(another.%name(), this);
200    GeoPointObject* geo rw = new GeoPointObject(another.%name(), this);
201    qint64 accessHash rw = another.%name();
202    qint32 userId rw = another.%name();
203    quint32 classType rw = another.%name();
204}
205
206object WallPaper {
207    qint32 bgColor rw = another.%name();
208    qint32 color rw = another.%name();
209    qint32 id rw = another.%name();
210    QString title rw = another.%name();
211    PhotoSizeList* sizes rw = new PhotoSizeList(another.%name(), this);
212    quint32 classType rw = another.%name();
213}
214
215object MessageAction {
216    QString address rw = another.%name();
217    qint32 userId rw = another.%name();
218    PhotoObject* photo rw = new PhotoObject(another.%name(), this);
219    QString title rw = another.%name();
220    QList<qint32> users rw = another.%name();
221    quint32 classType rw = another.%name();
222}
223
224object ChatPhoto {
225    FileLocationObject* photoBig rw = new FileLocationObject(another.%name(), this);
226    FileLocationObject* photoSmall rw = new FileLocationObject(another.%name(), this);
227    quint32 classType rw = another.%name();
228}
229
230object ChatFull {
231    ChatParticipantsObject* participants rw = new ChatParticipantsObject(another.%name(), this);
232    PhotoObject* chatPhoto rw = new PhotoObject(another.%name(), this);
233    qint32 id rw = another.%name();
234    PeerNotifySettingsObject* notifySettings rw = new PeerNotifySettingsObject(another.%name(), this);
235    quint32 classType rw = another.%name();
236}
237
238object UserProfilePhoto {
239    qint64 photoId rw = another.%name();
240    FileLocationObject* photoBig rw = new FileLocationObject(another.%name(), this);
241    FileLocationObject* photoSmall rw = new FileLocationObject(another.%name(), this);
242    quint32 classType rw = another.%name();
243}
244
245object Chat {
246    qint32 participantsCount rw = another.%name();
247    qint32 id rw = another.%name();
248    qint32 version rw = another.%name();
249    QString venue rw = another.%name();
250    QString title rw = another.%name();
251    QString address rw = another.%name();
252    qint32 date rw = another.%name();
253    ChatPhotoObject* photo rw = new ChatPhotoObject(another.%name(), this);
254    GeoPointObject* geo rw = new GeoPointObject(another.%name(), this);
255    qint64 accessHash rw = another.%name();
256    bool checkedIn rw = another.%name();
257    bool left rw = another.%name();
258    quint32 classType rw = another.%name();
259}
260
261object Dialog {
262    PeerObject* peer rw = new PeerObject(another.%name(), this);
263    PeerNotifySettingsObject* notifySettings rw = new PeerNotifySettingsObject(another.%name(), this);
264    qint32 topMessage rw = another.%name();
265    qint32 unreadCount rw = another.%name();
266    bool encrypted rw = false;
267    QStringList typingUsers rw;
268    quint32 classType rw = another.%name();
269}
270
271object SendMessageAction {
272    quint32 classType rw = another.%name();
273}
274
275object DecryptedMessageAction {
276    qint32 layer rw = another.%name();
277    QList<qint64> randomIds rw = another.%name();
278    qint32 ttlSeconds rw = another.%name();
279    qint32 startSeqNo rw = another.%name();
280    qint32 endSeqNo rw = another.%name();
281    SendMessageActionObject* action rw = new SendMessageActionObject(another.%name(), this);
282    quint32 classType rw = another.%name();
283}
284
285object DecryptedMessageMedia {
286    QByteArray thumb rw = another.%name();
287    qint32 thumbW rw = another.%name();
288    qint32 thumbH rw = another.%name();
289    qint32 duration rw = another.%name();
290    qint32 w rw = another.%name();
291    qint32 h rw = another.%name();
292    qint32 size rw = another.%name();
293    double latitude rw = another.%name();
294    double longitude rw = another.%name();
295    QByteArray key rw = another.%name();
296    QByteArray iv rw = another.%name();
297    QString phoneNumber rw = another.%name();
298    QString firstName rw = another.%name();
299    QString lastName rw = another.%name();
300    qint32 userId rw = another.%name();
301    QString fileName rw = another.%name();
302    QString mimeType rw = another.%name();
303    quint32 classType rw = another.%name();
304}
305
306object DecryptedMessage {
307    qint64 randomId rw = another.%name();
308    qint32 ttl rw = another.%name();
309    QByteArray randomBytes rw = another.%name();
310    QString message rw = another.%name();
311    DecryptedMessageMediaObject* media rw = new DecryptedMessageMediaObject(another.%name(), this);
312    DecryptedMessageActionObject* action rw = new DecryptedMessageActionObject(another.%name(), this);
313    quint32 classType rw = another.%name();
314}
315
316object MessageMedia {
317    AudioObject* audio rw = new AudioObject(another.%name(), this);
318    QString lastName rw = another.%name();
319    QByteArray bytes rw = another.%name();
320    QString firstName rw = another.%name();
321    DocumentObject* document rw = new DocumentObject(another.%name(), this);
322    GeoPointObject* geo rw = new GeoPointObject(another.%name(), this);
323    PhotoObject* photo rw = new PhotoObject(another.%name(), this);
324    QString phoneNumber rw = another.%name();
325    qint32 userId rw = another.%name();
326    VideoObject* video rw = new VideoObject(another.%name(), this);
327    quint32 classType rw = another.%name();
328}
329
330object Message {
331    qint32 id rw = another.%name();
332    bool sent rw = true;
333    bool encrypted rw = false;
334    UploadObject* upload rw = new UploadObject(this);
335    PeerObject* toId rw = new PeerObject(another.%name(), this);
336    bool unread rw = another.%name();
337    MessageActionObject* action rw = new MessageActionObject(another.%name(), this);
338    qint32 fromId rw = another.%name();
339    bool out rw = another.%name();
340    qint32 date rw = another.%name();
341    MessageMediaObject* media rw = new MessageMediaObject(another.%name(), this);
342    qint32 fwdDate rw = another.%name();
343    qint32 fwdFromId rw = another.%name();
344    QString message rw = another.%name();
345    quint32 classType rw = another.%name();
346}
347
348object GeoChatMessage {
349    qint32 id rw = another.%name();
350    MessageActionObject* action rw = new MessageActionObject(another.%name(), this);
351    qint32 fromId rw = another.%name();
352    qint32 date rw = another.%name();
353    MessageMediaObject* media rw = new MessageMediaObject(another.%name(), this);
354    qint32 chatId rw = another.%name();
355    QString message rw = another.%name();
356    quint32 classType rw = another.%name();
357}
358
359object User {
360    qint32 id rw = another.%name();
361    qint64 accessHash rw = another.%name();
362    bool inactive rw = another.%name();
363    QString phone rw = another.%name();
364    QString firstName rw = another.%name();
365    UserProfilePhotoObject* photo rw = new UserProfilePhotoObject(another.%name(), this);
366    UserStatusObject* status rw = new UserStatusObject(another.%name(), this);
367    QString lastName rw = another.%name();
368    QString username rw = another.%name();
369    quint32 classType rw = another.%name();
370}
371