Skip to content
snicholes edited this page Jan 8, 2020 · 2 revisions

The models folder in the Angular application represents the classes we used to represent important objects within the application. These include the User, Question, Response, Tag (for associated tags and skill set tags), Image, Account. Markdown options for the markdown editor are also in this folder.

The models included are set up as follows:

User

  • id: number
  • username: string
  • isExpert: boolean
  • expertTags: Tag[]
  • questions: Question[]
  • responses: Response[]

Question

  • id: number
  • username: string
  • tags?: string[]
  • userId: number
  • user?: User
  • head: string
  • body: string
  • creationDate: string
  • associatedTags: Tag[]
  • responses: Response[]
  • highlightedResponseId: Response
  • images: Image[]

Response

  • user: any
  • id: number responderId: number questionId: number body: string creationDate: string

Tag

id: number name: string checked?: boolean

Image

id: number image: any (this is represented as an array of bytes in the Java end) question: Question

Account

id: number expert: Boolean

Clone this wiki locally