-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DTO 생성
- Loading branch information
Showing
9 changed files
with
105 additions
and
14 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,47 @@ | ||
|
||
|
||
import Foundation | ||
|
||
struct GameList { | ||
var games: [Game] | ||
} | ||
|
||
struct Game { | ||
var home: Team | ||
var away: Team | ||
var homeScore: Int | ||
var awayScore: Int | ||
var inning: Int // 몇회 | ||
var status: String // 초, 말 | ||
var ballCount: [BallCount] | ||
} | ||
|
||
struct Team { | ||
var name: String | ||
var players: [Player] | ||
} | ||
|
||
struct Player { | ||
var name: String | ||
var position: String // 포지션 | ||
var atBat: String // 타석 | ||
var hits: Int // 안타 | ||
var out: Int // 아웃 | ||
var battingAverage: Double // 타율 | ||
var numberOfPitches: Int // 투구수 | ||
} | ||
|
||
struct BallCount { | ||
enum ball: Int { | ||
case strike = 0 | ||
case ball = 1 | ||
case hit = 2 | ||
} | ||
var ballCount: [ball] | ||
var hit: Bool | ||
} | ||
|
||
struct Score { | ||
var home: [Int] | ||
var away: [Int] | ||
} |
File renamed without changes.
File renamed without changes.