You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
426 B
TypeScript

export class Post {
id: string
username: string
handle: string
message: string
date: string
votes: number
constructor(pId: string, pUsername: string, pHandle: string, pMessage: string, pDate: string, pVotes: number) {
this.id = pId
this.username = pUsername
this.handle = pHandle
this.message = pMessage
this.date = pDate
this.votes = pVotes
}
}