diff options
author | crupest <crupest@outlook.com> | 2021-03-12 17:46:27 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-03-12 17:46:27 +0800 |
commit | 4475f2a89c2f2adf3fcc68bad4054f9710199875 (patch) | |
tree | f7cc4f6f01d403f2472849651b1dd7b9b1831b02 /FrontEnd/src/app/services/TimelinePostBuilder.ts | |
parent | 6d35c11754b3840a1debf36ce1ab8df3ec4fc491 (diff) | |
download | timeline-4475f2a89c2f2adf3fcc68bad4054f9710199875.tar.gz timeline-4475f2a89c2f2adf3fcc68bad4054f9710199875.tar.bz2 timeline-4475f2a89c2f2adf3fcc68bad4054f9710199875.zip |
...
Diffstat (limited to 'FrontEnd/src/app/services/TimelinePostBuilder.ts')
-rw-r--r-- | FrontEnd/src/app/services/TimelinePostBuilder.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/FrontEnd/src/app/services/TimelinePostBuilder.ts b/FrontEnd/src/app/services/TimelinePostBuilder.ts index 8594fa49..f6c8f881 100644 --- a/FrontEnd/src/app/services/TimelinePostBuilder.ts +++ b/FrontEnd/src/app/services/TimelinePostBuilder.ts @@ -10,7 +10,7 @@ import { UiLogicError } from "@/common"; import { base64 } from "@/http/common"; import { HttpTimelinePostPostRequest } from "@/http/timeline"; -export class TimelinePostBuilder { +export default class TimelinePostBuilder { private _onChange: () => void; private _text = ""; private _images: { file: File; url: string }[] = []; @@ -86,6 +86,10 @@ export class TimelinePostBuilder { this._onChange(); } + get text(): string { + return this._text; + } + get images(): { file: File; url: string }[] { return this._images; } |