mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-13 16:53:29 +01:00
28 lines
412 B
Swift
28 lines
412 B
Swift
|
|
//
|
||
|
|
// Campaign.swift
|
||
|
|
// AltStore
|
||
|
|
//
|
||
|
|
// Created by Riley Testut on 8/21/19.
|
||
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
||
|
|
//
|
||
|
|
|
||
|
|
import Foundation
|
||
|
|
|
||
|
|
extension PatreonAPI
|
||
|
|
{
|
||
|
|
struct CampaignResponse: Decodable
|
||
|
|
{
|
||
|
|
var id: String
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
struct Campaign
|
||
|
|
{
|
||
|
|
var identifier: String
|
||
|
|
|
||
|
|
init(response: PatreonAPI.CampaignResponse)
|
||
|
|
{
|
||
|
|
self.identifier = response.id
|
||
|
|
}
|
||
|
|
}
|