mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-15 02:56:28 +01:00
34 lines
604 B
Swift
34 lines
604 B
Swift
//
|
|
// ParsedHub.swift
|
|
// RSParser
|
|
//
|
|
// Created by Brent Simmons on 6/20/17.
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public final class ParsedHub: Hashable, Sendable {
|
|
|
|
public let type: String
|
|
public let url: String
|
|
|
|
init(type: String, url: String) {
|
|
self.type = type
|
|
self.url = url
|
|
}
|
|
|
|
// MARK: - Hashable
|
|
|
|
public func hash(into hasher: inout Hasher) {
|
|
hasher.combine(type)
|
|
hasher.combine(url)
|
|
}
|
|
|
|
// MARK: - Equatable
|
|
|
|
public static func ==(lhs: ParsedHub, rhs: ParsedHub) -> Bool {
|
|
lhs.type == rhs.type && lhs.url == rhs.url
|
|
}
|
|
}
|