-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #574 from wakmusic/561-develop-wakmuRecommendList
๐ :: (#561) ์๋ฎค ์ถ์ฒ ํ๋ ์ด๋ฆฌ์คํธ ํ๋ฉด์ ๋ง๋ค์ด์.
- Loading branch information
Showing
28 changed files
with
506 additions
and
418 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
14 changes: 3 additions & 11 deletions
14
Projects/Domains/PlayListDomain/Interface/Entity/AddSongEntity.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 |
---|---|---|
@@ -1,22 +1,14 @@ | ||
// | ||
// AddSongEntity.swift | ||
// DomainModule | ||
// | ||
// Created by yongbeomkwak on 2023/03/14. | ||
// Copyright ยฉ 2023 yongbeomkwak. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct AddSongEntity: Equatable { | ||
public init( | ||
added_songs_length: Int, | ||
addedSongCount: Int, | ||
duplicated: Bool | ||
) { | ||
self.added_songs_length = added_songs_length | ||
self.addedSongCount = addedSongCount | ||
self.duplicated = duplicated | ||
} | ||
|
||
public let added_songs_length: Int | ||
public let addedSongCount: Int | ||
public let duplicated: Bool | ||
} |
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
141 changes: 141 additions & 0 deletions
141
Projects/Domains/PlayListDomain/Testing/FetchPlayListUseCaseStub.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,141 @@ | ||
import PlayListDomainInterface | ||
import RxSwift | ||
|
||
final class FetchPlayListUseCaseStub: FetchRecommendPlayListUseCase { | ||
var fetchData = [ | ||
RecommendPlayListEntity( | ||
key: "best", | ||
title: "๋ฒ ์คํธ", | ||
image: "https://cdn.wakmusic.xyz/playlist/best_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "carol", | ||
title: "์บ๋กค", | ||
image: "https://cdn.wakmusic.xyz/playlist/carol_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "competition", | ||
title: "๊ฒฝ์", | ||
image: "https://cdn.wakmusic.xyz/playlist/competition_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "best", | ||
title: "๋ฒ ์คํธ", | ||
image: "https://cdn.wakmusic.xyz/playlist/best_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "carol", | ||
title: "์บ๋กค", | ||
image: "https://cdn.wakmusic.xyz/playlist/carol_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "competition", | ||
title: "๊ฒฝ์", | ||
image: "https://cdn.wakmusic.xyz/playlist/competition_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "best", | ||
title: "๋ฒ ์คํธ", | ||
image: "https://cdn.wakmusic.xyz/playlist/best_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "carol", | ||
title: "์บ๋กค", | ||
image: "https://cdn.wakmusic.xyz/playlist/carol_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "competition", | ||
title: "๊ฒฝ์", | ||
image: "https://cdn.wakmusic.xyz/playlist/competition_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "best", | ||
title: "๋ฒ ์คํธ", | ||
image: "https://cdn.wakmusic.xyz/playlist/best_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "carol", | ||
title: "์บ๋กค", | ||
image: "https://cdn.wakmusic.xyz/playlist/carol_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "competition", | ||
title: "๊ฒฝ์", | ||
image: "https://cdn.wakmusic.xyz/playlist/competition_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "best", | ||
title: "๋ฒ ์คํธ", | ||
image: "https://cdn.wakmusic.xyz/playlist/best_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "carol", | ||
title: "์บ๋กค", | ||
image: "https://cdn.wakmusic.xyz/playlist/carol_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "competition", | ||
title: "๊ฒฝ์", | ||
image: "https://cdn.wakmusic.xyz/playlist/competition_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "best", | ||
title: "๋ฒ ์คํธ", | ||
image: "https://cdn.wakmusic.xyz/playlist/best_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "carol", | ||
title: "์บ๋กค", | ||
image: "https://cdn.wakmusic.xyz/playlist/carol_1.png", | ||
private: false, | ||
count: 0 | ||
), | ||
RecommendPlayListEntity( | ||
key: "competition", | ||
title: "๊ฒฝ์", | ||
image: "https://cdn.wakmusic.xyz/playlist/competition_1.png", | ||
private: false, | ||
count: 0 | ||
) | ||
] | ||
|
||
func execute() -> Single<[RecommendPlayListEntity]> { | ||
return Single.create { [fetchData] single in | ||
|
||
single(.success(fetchData)) | ||
return Disposables.create() | ||
} | ||
} | ||
} |
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.