2017-06-21 07:00:19 +02:00
|
|
|
//
|
|
|
|
// ParsedHub.swift
|
|
|
|
// RSParser
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 6/20/17.
|
|
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2017-09-10 19:53:24 +02:00
|
|
|
public struct ParsedHub: Hashable {
|
2017-06-21 07:00:19 +02:00
|
|
|
|
2017-09-10 19:53:24 +02:00
|
|
|
public let type: String
|
|
|
|
public let url: String
|
|
|
|
public let hashValue: Int
|
|
|
|
|
|
|
|
init(type: String, url: String) {
|
|
|
|
|
|
|
|
self.type = type
|
|
|
|
self.url = url
|
2017-10-06 06:08:27 +02:00
|
|
|
self.hashValue = url.hashValue
|
2017-09-10 19:53:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static func ==(lhs: ParsedHub, rhs: ParsedHub) -> Bool {
|
|
|
|
|
|
|
|
return lhs.type == rhs.type && lhs.url == rhs.url
|
|
|
|
}
|
2017-06-21 07:00:19 +02:00
|
|
|
}
|