feat(ios): share extension ile Ratebubble iOS istemcisini ekle ve paylaşım akışını düzelt
This commit is contained in:
29
ios/Ratebubble/Shared/Models.swift
Normal file
29
ios/Ratebubble/Shared/Models.swift
Normal file
@@ -0,0 +1,29 @@
|
||||
import Foundation
|
||||
|
||||
struct GetInfoRequest: Encodable {
|
||||
let url: String
|
||||
}
|
||||
|
||||
struct APIErrorPayload: Decodable, Error {
|
||||
let code: String
|
||||
let message: String
|
||||
}
|
||||
|
||||
struct APIEnvelope<T: Decodable>: Decodable {
|
||||
let success: Bool
|
||||
let data: T?
|
||||
let error: APIErrorPayload?
|
||||
}
|
||||
|
||||
struct GetInfoResponse: Decodable {
|
||||
let provider: String
|
||||
let title: String
|
||||
let year: Int?
|
||||
let plot: String?
|
||||
let ageRating: String?
|
||||
let type: String
|
||||
let genres: [String]
|
||||
let cast: [String]
|
||||
let backdrop: String?
|
||||
let currentSeason: Int?
|
||||
}
|
||||
Reference in New Issue
Block a user