Skip to content

Commit

Permalink
style: 코드컨벤션 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eemdeeks committed Nov 21, 2024
1 parent 13e9f80 commit 172c4c6
Showing 1 changed file with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,35 @@ public final class WhiteboardObjectRepository: WhiteboardObjectRepositoryInterfa
public func send(whiteboardObject: WhiteboardObject, isDelete: Bool) async {
switch whiteboardObject {
case let textObject as TextObject:
await send(whiteboardObject: textObject, type: .text, isDelete: isDelete)
await send(
whiteboardObject: textObject,
type: .text,
isDelete: isDelete)
case let drawingObject as DrawingObject:
await send(whiteboardObject: drawingObject, type: .drawing, isDelete: isDelete)
await send(
whiteboardObject: drawingObject,
type: .drawing,
isDelete: isDelete)
case let photoObject as PhotoObject:
await send(whiteboardObject: photoObject, type: .photo, isDelete: isDelete)
await send(
whiteboardObject: photoObject,
type: .photo,
isDelete: isDelete)
default:
break
}
}

private func send(whiteboardObject: WhiteboardObject, type: AirplaINDataType, isDelete: Bool) async {
private func send(
whiteboardObject: WhiteboardObject,
type: AirplaINDataType,
isDelete: Bool
) async {
let objectData = try? JSONEncoder().encode(whiteboardObject)
let objectInformation = DataInformationDTO(id: whiteboardObject.id, type: type, isDelete: isDelete)
let objectInformation = DataInformationDTO(
id: whiteboardObject.id,
type: type,
isDelete: isDelete)
guard let url = filePersistence
.save(dataInfo: objectInformation, data: objectData)
else {
Expand Down

0 comments on commit 172c4c6

Please sign in to comment.