mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 19:53:25 +01:00
Create swift package
This commit is contained in:
23
Sources/SideStoreCore/Patreon/Campaign.swift
Normal file
23
Sources/SideStoreCore/Patreon/Campaign.swift
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// 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
|
||||
}
|
||||
}
|
||||
|
||||
public struct Campaign {
|
||||
public var identifier: String
|
||||
|
||||
init(response: PatreonAPI.CampaignResponse) {
|
||||
identifier = response.id
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user