data_report.h 567 B

123456789101112131415161718192021222324
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Data {
  9. struct ReportInput final {
  10. QByteArray optionId;
  11. QString optionText;
  12. QString comment;
  13. std::vector<MsgId> ids;
  14. std::vector<StoryId> stories;
  15. inline bool operator==(const ReportInput &other) const {
  16. return optionId == other.optionId && comment == other.comment;
  17. }
  18. };
  19. } // namespace Data