-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,057 additions
and
175 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
Boolti/Boolti/Sources/Entities/Concert/ConcertCastTeamListEntity.swift
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,26 @@ | ||
// | ||
// ConcertCastTeamListEntity.swift | ||
// Boolti | ||
// | ||
// Created by Miro on 10/6/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct ConcertCastTeamListEntity { | ||
let id: Int | ||
let name: String | ||
let members: [TeamMember] | ||
let createdAt: String | ||
let modifiedAt: String | ||
} | ||
|
||
struct TeamMember { | ||
let id: Int | ||
let code: String | ||
let imagePath: String | ||
let nickName: String | ||
let roleName: String | ||
let createdAt: String | ||
let modifiedAt: String | ||
} |
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
13 changes: 13 additions & 0 deletions
13
Boolti/Boolti/Sources/Network/DTO/Concert/Request/ConcertCastTeamListRequestDTO.swift
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,13 @@ | ||
// | ||
// ConcertCastTeamListRequestDTO.swift | ||
// Boolti | ||
// | ||
// Created by Miro on 10/6/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct ConcertCastTeamListRequestDTO: Encodable { | ||
|
||
let showID: Int | ||
} |
13 changes: 13 additions & 0 deletions
13
Boolti/Boolti/Sources/Network/DTO/Concert/Request/ConcertUserProfileRequestDTO.swift
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,13 @@ | ||
// | ||
// ConcertUserProfileRequestDTO.swift | ||
// Boolti | ||
// | ||
// Created by Miro on 10/7/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct ConcertUserProfileRequestDTO: Encodable { | ||
|
||
let userCode: String | ||
} |
47 changes: 47 additions & 0 deletions
47
Boolti/Boolti/Sources/Network/DTO/Concert/Response/ConcertCastTeamListResponseDTO.swift
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 @@ | ||
// | ||
// ConcertCastTeamListResponseDTO.swift | ||
// Boolti | ||
// | ||
// Created by Miro on 10/6/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct ConcertCastTeamListResponseDTO: Decodable { | ||
let id: Int | ||
let name: String | ||
let members: [TeamMemberDTO] | ||
let createdAt: String | ||
let modifiedAt: String | ||
|
||
func convertToTeamListEntity() -> ConcertCastTeamListEntity { | ||
let members = self.members.map { DTO in | ||
return TeamMember( | ||
id: DTO.id, | ||
code: DTO.userCode, | ||
imagePath: DTO.userImgPath, | ||
nickName: DTO.userNickname, | ||
roleName: DTO.roleName, | ||
createdAt: DTO.createdAt, | ||
modifiedAt: DTO.modifiedAt | ||
) | ||
} | ||
return ConcertCastTeamListEntity( | ||
id: self.id, | ||
name: self.name, | ||
members: members, | ||
createdAt: self.createdAt, | ||
modifiedAt: self.modifiedAt | ||
) | ||
} | ||
} | ||
|
||
struct TeamMemberDTO: Codable { | ||
let id: Int | ||
let userCode: String | ||
let userImgPath: String | ||
let userNickname: String | ||
let roleName: String | ||
let createdAt: String | ||
let modifiedAt: String | ||
} |
25 changes: 25 additions & 0 deletions
25
Boolti/Boolti/Sources/Network/DTO/Concert/Response/ConcertUserProfileResponseDTO.swift
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,25 @@ | ||
// | ||
// ConcertUserProfileResponseDTO.swift | ||
// Boolti | ||
// | ||
// Created by Miro on 10/8/24. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol UserProfileResponseDTO: Decodable { | ||
var nickname: String? { get } | ||
var userCode: String? { get } | ||
var imgPath: String? { get } | ||
var introduction: String? { get } | ||
var link: [LinkEntity]? { get } | ||
} | ||
|
||
struct ConcertUserProfileResponseDTO: UserProfileResponseDTO { | ||
|
||
let nickname: String? | ||
let userCode: String? | ||
let imgPath: String? | ||
let introduction: String? | ||
let link: [LinkEntity]? | ||
} |
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
13 changes: 13 additions & 0 deletions
13
Boolti/Boolti/Sources/Network/Repositories/RepositoryType.swift
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,13 @@ | ||
// | ||
// RepositoryType.swift | ||
// Boolti | ||
// | ||
// Created by Miro on 10/7/24. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol RepositoryType { | ||
|
||
var networkService: NetworkProviderType { get } | ||
} |
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
Oops, something went wrong.