mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
43 lines
941 B
Swift
43 lines
941 B
Swift
// Generated code. Do not modify.
|
|
|
|
import CommonCore
|
|
import Foundation
|
|
import Serialization
|
|
import TemplatesSupport
|
|
|
|
@frozen
|
|
public enum DivPagerLayoutMode {
|
|
case divPageSize(DivPageSize)
|
|
case divNeighbourPageSize(DivNeighbourPageSize)
|
|
|
|
public var value: Serializable {
|
|
switch self {
|
|
case let .divPageSize(value):
|
|
return value
|
|
case let .divNeighbourPageSize(value):
|
|
return value
|
|
}
|
|
}
|
|
}
|
|
|
|
#if DEBUG
|
|
extension DivPagerLayoutMode: Equatable {
|
|
public static func ==(lhs: DivPagerLayoutMode, rhs: DivPagerLayoutMode) -> Bool {
|
|
switch (lhs, rhs) {
|
|
case let (.divPageSize(l), .divPageSize(r)):
|
|
return l == r
|
|
case let (.divNeighbourPageSize(l), .divNeighbourPageSize(r)):
|
|
return l == r
|
|
default:
|
|
return false
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
extension DivPagerLayoutMode: Serializable {
|
|
public func toDictionary() -> [String: ValidSerializationValue] {
|
|
return value.toDictionary()
|
|
}
|
|
}
|