-
Notifications
You must be signed in to change notification settings - Fork 3
[Refactor] 근거리 통신 모듈 교체, Repository의 역할 일부 수정 #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- 기존 WhiteboardRepository가 하는 역할 일부를 WhiteboardListRepository로 옮겼습니다. - 화이트보드 광고, 탐색, 연결 시도와 관련된 기능들을 제공합니다.
- 단일 화이트보드에서 수행할 수 있는 기능들을 제공합니다. - 기존 WhiteboardObjectRepository에서 수행한 기능을 담당하도록 수정했습니다. - 추가적으로 화이트보드 연결 끊기와 재게시 기능도 담당합니다.
- 기존에 WhiteboardUseCase에서 제공하던 기능의 일부를 담당합니다. - 화이트보드 생성, 광고, 연결, 탐색 기능을 제공합니다.
- 기존 WhiteboardObjectUseCase에서 하는 기능을 모두 담당합니다. - 추가로 화이트보드 연결 해제 기능을 제공합니다.
|
테스트 코드의 경우 C팀 변경 사항 적용 후 다시 살펴보겠습니다! |
ekrud99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
대공사 진짜 수고하셨습니다..
제가 처음부터 화이트보드 레포지토리 설계를 잘 했더라면 수고가 좀 덜 했으려나요..
한결 깔끔해진 것 같아 좋습니다!!
eemdeeks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생 많으셨습니다!!!
생각한대로만 잘 동작한다면 너무 좋을 것 같네요! 👍
리팩토링까지 구욷구욷
| public struct DataInformationDTO: Codable { | ||
| public struct AirplaINDataDTO: Codable { | ||
| public let id: UUID | ||
| public let data: Data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기에 data를 Data타입으로 되어 있는데,
보내 줄 데이터를 인코딩하여 넣어주기만 하면 될 것 같은데, 맞을까요??
| public func republish(whiteboard: Whiteboard) { | ||
| nearbyNetworkService.stopPublishing() | ||
| nearbyNetworkService.startPublishing( | ||
| with: whiteboard.name, | ||
| connectedPeerInfo: whiteboard | ||
| .participantIcons | ||
| .map { $0.emoji }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이전에 리퍼블리시하는 과정에서 원하는 대로 동작하지 않았었는데, network 프레임 워크로 변경 후에는 괜찮은지 궁금합니다!!
| private var whiteboardListRepository: WhiteboardListRepositoryInterface | ||
| private var profileRepository: ProfileRepositoryInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var인 이유가 혹시 있을까요..!?
객체가 변경되지는 않을 것 같아서 여쭤봅니다!
| serviceType: serviceName) | ||
| serviceBrowser = MCNearbyServiceBrowser(peer: peerID, serviceType: serviceName) | ||
|
|
||
| // TODO: - 추후 기능 동작 확인 후 NearbyNetworkService 대체 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
성공적이라면 투두를 지워도 될 것 같습니다!! :)
🌁 Background
👩💻 Contents
📝 Review Note