-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Yeonkyu Min <[email protected]>
- Loading branch information
Showing
17 changed files
with
740 additions
and
193 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
import { Page } from "./Page"; | ||
import { WorkSpaceSerializedProps } from "./Interfaces"; | ||
|
||
export class WorkSpace { | ||
id: string; | ||
pageList: Page[]; | ||
authUser: object; | ||
authUser: Map<string, string>; | ||
|
||
constructor(id: string, pageList: Page[]) { | ||
this.id = id; | ||
this.pageList = pageList; | ||
this.authUser = new Map(); | ||
// 직렬화, 역직렬화 메서드 추가 | ||
} | ||
|
||
serialize(): WorkSpaceSerializedProps { | ||
return { | ||
id: this.id, | ||
pageList: this.pageList, | ||
authUser: this.authUser, | ||
}; | ||
} | ||
deserialize(): void { | ||
return; | ||
} | ||
} |
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.