24 lines
571 B
Swift
24 lines
571 B
Swift
//
|
|
// NotificationButtonModel.swift
|
|
// VDS
|
|
//
|
|
// Created by Nadigadda, Sumanth on 24/03/23.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension Notification {
|
|
public struct ButtonModel: Equatable {
|
|
public var text: String
|
|
public var onClick: (Button) -> ()
|
|
public init(text: String, onClick: @escaping (Button) -> Void) {
|
|
self.text = text
|
|
self.onClick = onClick
|
|
}
|
|
|
|
public static func == (lhs: Notification.ButtonModel, rhs: Notification.ButtonModel) -> Bool {
|
|
lhs.text == rhs.text
|
|
}
|
|
}
|
|
}
|