mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
23 lines
752 B
Swift
23 lines
752 B
Swift
import Foundation
|
|
import TelegramCore
|
|
|
|
public struct InstantPageMedia: Equatable {
|
|
public let index: Int
|
|
public let media: EngineMedia
|
|
public let url: InstantPageUrlItem?
|
|
public let caption: RichText?
|
|
public let credit: RichText?
|
|
|
|
public init(index: Int, media: EngineMedia, url: InstantPageUrlItem?, caption: RichText?, credit: RichText?) {
|
|
self.index = index
|
|
self.media = media
|
|
self.url = url
|
|
self.caption = caption
|
|
self.credit = credit
|
|
}
|
|
|
|
public static func ==(lhs: InstantPageMedia, rhs: InstantPageMedia) -> Bool {
|
|
return lhs.index == rhs.index && lhs.media == rhs.media && lhs.url == rhs.url && lhs.caption == rhs.caption && lhs.credit == rhs.credit
|
|
}
|
|
}
|