data_stories_ids.h 718 B

1234567891011121314151617181920212223242526272829303132
  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. #include "data/data_abstract_sparse_ids.h"
  9. class PeerData;
  10. namespace Main {
  11. class Session;
  12. } // namespace Main
  13. namespace Data {
  14. using StoriesIdsSlice = AbstractSparseIds<std::vector<StoryId>>;
  15. [[nodiscard]] rpl::producer<StoriesIdsSlice> SavedStoriesIds(
  16. not_null<PeerData*> peer,
  17. StoryId aroundId,
  18. int limit);
  19. [[nodiscard]] rpl::producer<StoriesIdsSlice> ArchiveStoriesIds(
  20. not_null<PeerData*> peer,
  21. StoryId aroundId,
  22. int limit);
  23. } // namespace Data