//
//  RuleNotEqualsModel.swift
//  MVMCoreUI
//
//  Created by Marakanti, Keerthy on 26/09/22.
//  Copyright © 2022 Verizon Wireless. All rights reserved.
//

import Foundation

public class RuleNotEqualsModel: RuleCompareModelProtocol {
    //--------------------------------------------------
    // MARK: - Properties
    //--------------------------------------------------
    
    public static var identifier: String = "notEquals"
    public var type: String = RuleNotEqualsModel.identifier
    public var ruleId: String?
    public var fields: [String]
    public var errorMessage: [String: String]?
    
    //--------------------------------------------------
    // MARK: - Initializer
    //--------------------------------------------------

    public init(fields: [String]) {
        self.fields = fields
    }

    //--------------------------------------------------
    // MARK: - Validation
    //--------------------------------------------------

    public func isValid(_ formField: FormFieldProtocol) -> Bool {
        return false
    }
    
    ///RuleCompareModelProtocol Method
    public func compare(lhs: AnyHashable?, rhs: AnyHashable?) -> Bool {
        return lhs != rhs
    }

}

