-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REFACTOR: Rename TV Show to TV Series (#122)
- Loading branch information
1 parent
fbb8304
commit bb032f0
Showing
119 changed files
with
1,277 additions
and
1,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import Foundation | ||
|
||
/// | ||
/// A model representing a TV series credits for a person. | ||
/// | ||
/// A person can be both a cast member and crew member of the same TV series. | ||
/// | ||
public struct PersonTVSeriesCredits: Identifiable, Decodable, Equatable, Hashable { | ||
|
||
/// | ||
/// Person identifier. | ||
/// | ||
public let id: Int | ||
|
||
/// | ||
/// TV series where the person is in the cast. | ||
/// | ||
public let cast: [TVSeries] | ||
|
||
/// | ||
/// TV series where the person is in the crew. | ||
/// | ||
public let crew: [TVSeries] | ||
|
||
/// | ||
/// All TV series the person is in. | ||
/// | ||
public var allShows: [TVSeries] { | ||
(cast + crew).uniqued() | ||
} | ||
|
||
/// | ||
/// Creates a person TV series credits object. | ||
/// | ||
/// - Parameters: | ||
/// - id: Person identifier. | ||
/// - cast: TV series where the person is in the cast. | ||
/// - crew: TV series where the person is in the crew. | ||
/// | ||
public init(id: Int, cast: [TVSeries], crew: [TVSeries]) { | ||
self.id = id | ||
self.cast = cast | ||
self.crew = crew | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.