1 // This file generated by libqtelegram-code-generator. 2 // You can download it from: https://github.com/Aseman-Land/libqtelegram-code-generator 3 // DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN 4 5 #ifndef LQTG_TYPE_INPUTCHATPHOTO 6 #define LQTG_TYPE_INPUTCHATPHOTO 7 8 #include "telegramtypeobject.h" 9 #include "inputphotocrop.h" 10 #include "inputfile.h" 11 #include "inputphoto.h" 12 13 class LIBQTELEGRAMSHARED_EXPORT InputChatPhoto : public TelegramTypeObject 14 { 15 public: 16 enum InputChatPhotoType { 17 typeInputChatPhotoEmpty = 0x1ca48f57, 18 typeInputChatUploadedPhoto = 0x94254732, 19 typeInputChatPhoto = 0xb2e1bf08 20 }; 21 22 InputChatPhoto(InputChatPhotoType classType = typeInputChatPhotoEmpty, InboundPkt *in = 0); 23 InputChatPhoto(InboundPkt *in); 24 virtual ~InputChatPhoto(); 25 26 void setCrop(const InputPhotoCrop &crop); 27 InputPhotoCrop crop() const; 28 29 void setFile(const InputFile &file); 30 InputFile file() const; 31 32 void setId(const InputPhoto &id); 33 InputPhoto id() const; 34 35 void setClassType(InputChatPhotoType classType); 36 InputChatPhotoType classType() const; 37 38 bool fetch(InboundPkt *in); 39 bool push(OutboundPkt *out) const; 40 41 bool operator ==(const InputChatPhoto &b); 42 43 private: 44 InputPhotoCrop m_crop; 45 InputFile m_file; 46 InputPhoto m_id; 47 InputChatPhotoType m_classType; 48 }; 49 50 #endif // LQTG_TYPE_INPUTCHATPHOTO 51