mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-07 08:01:10 +00:00

git-subtree-dir: submodules/TelegramUI git-subtree-mainline: 5c1613d1048026b9e00a6ce753775cef87eb53fa git-subtree-split: fa3ac0b61a27c8dd3296518a15891a6f9750cbf2
26 lines
711 B
Swift
26 lines
711 B
Swift
import Foundation
|
|
|
|
struct GalleryItemOriginData: Equatable {
|
|
let title: String?
|
|
let timestamp: Int32?
|
|
|
|
static func ==(lhs: GalleryItemOriginData, rhs: GalleryItemOriginData) -> Bool {
|
|
return lhs.title == rhs.title && lhs.timestamp == rhs.timestamp
|
|
}
|
|
}
|
|
|
|
struct GalleryItemIndexData: Equatable {
|
|
let position: Int32
|
|
let totalCount: Int32
|
|
|
|
static func ==(lhs: GalleryItemIndexData, rhs: GalleryItemIndexData) -> Bool {
|
|
return lhs.position == rhs.position && lhs.totalCount == rhs.totalCount
|
|
}
|
|
}
|
|
|
|
protocol GalleryItem {
|
|
func node() -> GalleryItemNode
|
|
func updateNode(node: GalleryItemNode)
|
|
func thumbnailItem() -> (Int64, GalleryThumbnailItem)?
|
|
}
|