Swiftgram/Postbox/MediaCleanupTable.swift
2016-03-28 17:23:33 +03:00

17 lines
401 B
Swift

import Foundation
final class MediaCleanupTable: Table {
var debugMedia: [Media] = []
override init(valueBox: ValueBox, tableId: Int32) {
super.init(valueBox: valueBox, tableId: tableId)
}
func add(media: Media, sharedEncoder: Encoder = Encoder()) {
debugMedia.append(media)
}
func debugList() -> [Media] {
return self.debugMedia
}
}