2017-12-10 22:58:44 +01:00
|
|
|
//
|
2018-10-15 03:10:07 +02:00
|
|
|
// FeedbinFeed.swift
|
2017-12-10 22:58:44 +01: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 17:51:41 +02:00
|
|
|
struct FeedbinSubscription: Codable {
|
2017-12-10 22:58:44 +01:00
|
|
|
|
2018-10-15 03:38:33 +02:00
|
|
|
let subscriptionID: Int
|
|
|
|
let feedID: Int
|
2018-10-15 03:10:07 +02:00
|
|
|
let name: String?
|
|
|
|
let url: String
|
|
|
|
let homePageURL: String?
|
|
|
|
|
2019-05-05 10:25:21 +02: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 22:58:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2019-05-08 13:56:15 +02:00
|
|
|
|
|
|
|
struct FeedbinCreateSubscription: Codable {
|
|
|
|
let feedURL: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
case feedURL = "feed_url"
|
|
|
|
}
|
2019-05-09 00:41:19 +02:00
|
|
|
}
|
2019-05-08 13:56:15 +02:00
|
|
|
|
2019-05-09 00:41:19 +02:00
|
|
|
struct FeedbinUpdateSubscription: Codable {
|
|
|
|
let title: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
case title
|
|
|
|
}
|
2019-05-08 13:56:15 +02:00
|
|
|
}
|
2019-05-10 17:14:24 +02:00
|
|
|
|
|
|
|
struct FeedbinSubscriptionChoice: Codable {
|
|
|
|
|
|
|
|
let name: String?
|
|
|
|
let url: String
|
|
|
|
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
case name = "title"
|
|
|
|
case url = "feed_url"
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|