2024-04-03 06:43:06 +02:00
|
|
|
//
|
|
|
|
// ParsedHub.swift
|
|
|
|
// RSParser
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 6/20/17.
|
|
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2024-09-10 06:57:54 +02:00
|
|
|
public final class ParsedHub: Hashable, Sendable {
|
2024-04-03 06:43:06 +02:00
|
|
|
|
|
|
|
public let type: String
|
|
|
|
public let url: String
|
2024-09-10 06:57:54 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2024-04-03 06:43:06 +02:00
|
|
|
}
|