mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactoring
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import Foundation
|
||||
import SyncCore
|
||||
|
||||
public struct ImageRepresentationWithReference: Equatable {
|
||||
public let representation: TelegramMediaImageRepresentation
|
||||
public let reference: MediaResourceReference
|
||||
|
||||
public init(representation: TelegramMediaImageRepresentation, reference: MediaResourceReference) {
|
||||
self.representation = representation
|
||||
self.reference = reference
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public struct VideoRepresentationWithReference: Equatable {
|
||||
public let representation: TelegramMediaImage.VideoRepresentation
|
||||
public let reference: MediaResourceReference
|
||||
|
||||
public init(representation: TelegramMediaImage.VideoRepresentation, reference: MediaResourceReference) {
|
||||
self.representation = representation
|
||||
self.reference = reference
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user