mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-12 17:36:19 +01:00
29 lines
522 B
Swift
29 lines
522 B
Swift
//
|
|
// ParsedHub.swift
|
|
// RSParser
|
|
//
|
|
// Created by Brent Simmons on 6/20/17.
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ParsedHub: Hashable {
|
|
|
|
public let type: String
|
|
public let url: String
|
|
public let hashValue: Int
|
|
|
|
init(type: String, url: String) {
|
|
|
|
self.type = type
|
|
self.url = url
|
|
self.hashValue = url.hashValue
|
|
}
|
|
|
|
public static func ==(lhs: ParsedHub, rhs: ParsedHub) -> Bool {
|
|
|
|
return lhs.type == rhs.type && lhs.url == rhs.url
|
|
}
|
|
}
|