Swiftgram/submodules/TelegramUI/Sources/ChatRecentActionsControllerState.swift
2020-02-20 18:08:36 +04:00

37 lines
1.0 KiB
Swift

import Foundation
import UIKit
import TelegramCore
import SyncCore
import TelegramPresentationData
import TelegramUIPreferences
final class ChatRecentActionsControllerState: Equatable {
let chatWallpaper: TelegramWallpaper
let theme: PresentationTheme
let strings: PresentationStrings
let fontSize: PresentationFontSize
init(chatWallpaper: TelegramWallpaper, theme: PresentationTheme, strings: PresentationStrings, fontSize: PresentationFontSize) {
self.chatWallpaper = chatWallpaper
self.theme = theme
self.strings = strings
self.fontSize = fontSize
}
static func ==(lhs: ChatRecentActionsControllerState, rhs: ChatRecentActionsControllerState) -> Bool {
if lhs.chatWallpaper != rhs.chatWallpaper {
return false
}
if lhs.theme !== rhs.theme {
return false
}
if lhs.strings !== rhs.strings {
return false
}
if lhs.fontSize != rhs.fontSize {
return false
}
return true
}
}