2017-12-10 13:58:44 -08:00
|
|
|
//
|
2018-10-14 18:10:07 -07:00
|
|
|
// FeedbinFeed.swift
|
2017-12-10 13:58:44 -08:00
|
|
|
// Account
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 12/10/17.
|
|
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import RSCore
|
|
|
|
import RSParser
|
|
|
|
|
2019-05-07 10:51:41 -05:00
|
|
|
struct FeedbinSubscription: Codable {
|
2017-12-10 13:58:44 -08:00
|
|
|
|
2018-10-14 18:38:33 -07:00
|
|
|
let subscriptionID: Int
|
|
|
|
let feedID: Int
|
2018-10-14 18:10:07 -07:00
|
|
|
let name: String?
|
|
|
|
let url: String
|
|
|
|
let homePageURL: String?
|
|
|
|
|
2019-05-05 03:25:21 -05:00
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
case subscriptionID = "id"
|
|
|
|
case feedID = "feed_id"
|
|
|
|
case name = "title"
|
|
|
|
case url = "feed_url"
|
|
|
|
case homePageURL = "site_url"
|
2017-12-10 13:58:44 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2019-05-08 06:56:15 -05:00
|
|
|
|
|
|
|
struct FeedbinCreateSubscription: Codable {
|
|
|
|
let feedURL: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
case feedURL = "feed_url"
|
|
|
|
}
|
2019-05-08 17:41:19 -05:00
|
|
|
}
|
2019-05-08 06:56:15 -05:00
|
|
|
|
2019-05-08 17:41:19 -05:00
|
|
|
struct FeedbinUpdateSubscription: Codable {
|
|
|
|
let title: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
case title
|
|
|
|
}
|
2019-05-08 06:56:15 -05:00
|
|
|
}
|
2019-05-10 10:14:24 -05:00
|
|
|
|
|
|
|
struct FeedbinSubscriptionChoice: Codable {
|
|
|
|
|
|
|
|
let name: String?
|
|
|
|
let url: String
|
|
|
|
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
case name = "title"
|
|
|
|
case url = "feed_url"
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|