Files
wanderer/web/src/lib/models/comment.ts
2024-04-07 20:38:21 +02:00

20 lines
435 B
TypeScript

import type { User } from "$lib/stores/user_store";
export class Comment {
id?: string;
text: string;
rating: number;
author: string;
trail: string;
created?: string;
expand?: {
author: User
}
constructor(text: string, rating: number, author: string, trail: string) {
this.text = text;
this.rating = rating;
this.author = author;
this.trail = trail;
}
}