mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
21 lines
447 B
Swift
21 lines
447 B
Swift
import Foundation
|
|
|
|
final class MediaCleanupTable {
|
|
let valueBox: ValueBox
|
|
let tableId: Int32
|
|
|
|
var debugMedia: [Media] = []
|
|
|
|
init(valueBox: ValueBox, tableId: Int32) {
|
|
self.valueBox = valueBox
|
|
self.tableId = tableId
|
|
}
|
|
|
|
func add(media: Media, sharedEncoder: Encoder = Encoder()) {
|
|
debugMedia.append(media)
|
|
}
|
|
|
|
func debugList() -> [Media] {
|
|
return self.debugMedia
|
|
}
|
|
} |