Refactoring

This commit is contained in:
Ali
2021-08-01 18:12:53 +02:00
parent 878afc62bf
commit 648a74003e
87 changed files with 812 additions and 357 deletions

View File

@@ -0,0 +1,35 @@
import Postbox
public final class EngineGroupCallDescription {
public let id: Int64
public let accessHash: Int64
public let title: String?
public let scheduleTimestamp: Int32?
public let subscribedToScheduled: Bool
public init(
id: Int64,
accessHash: Int64,
title: String?,
scheduleTimestamp: Int32?,
subscribedToScheduled: Bool
) {
self.id = id
self.accessHash = accessHash
self.title = title
self.scheduleTimestamp = scheduleTimestamp
self.subscribedToScheduled = subscribedToScheduled
}
}
public extension EngineGroupCallDescription {
convenience init(_ activeCall: CachedChannelData.ActiveCall) {
self.init(
id: activeCall.id,
accessHash: activeCall.accessHash,
title: activeCall.title,
scheduleTimestamp: activeCall.scheduleTimestamp,
subscribedToScheduled: activeCall.subscribedToScheduled
)
}
}