Optional
L?: string"Coucou tout le monde !"
Full name of the author of this news.
"John D."
Category this news belongs to.
Full date this news was created.
"15/02/2024 23:09:10" // in the server timezone
Date this news should be displayed.
"15/02/2024"
Date this news should be stopped from being displayed.
"06/07/2024"
More information about the author ? TODO: Find out for why this is needed ?
Whether you are the author of this news.
Whether this news is actually a news or not.
TODO: Not sure what this does.
Whether this news is actually a survey or not.
Whether this news have been read or not.
Student's first name.
Student's more info. This is needed to update the news' state.
Whether your response is anonymous or not.
Private
Readonly
#authorPrivate
Readonly
#categoryPrivate
Readonly
#clientPrivate
Readonly
#creationPrivate
Readonly
#endPrivate
Readonly
#idPrivate
Readonly
#isPrivate
Readonly
#publicPrivate
Readonly
#questionsPrivate
#readPrivate
Readonly
#startPrivate
Optional
Readonly
#titlePrivate
#stateInternal helper to get the current news state information.
Name of the author of the information / survey.
"John D."
Whether your response is anonymous or not.
Low level data about the public information of the user that'll send answers. Used internally when sending answers to the server.
Most of the time, you won't need this.
List of the questions contained in this survey.
You can answer them by reassigning the answer
property.
question.answer = "[1..2]";
Whether this news have been read or not.
Answers the survey with the given answers. By default, it'll answer with the questions that were given when the survey was created.
You can either manipulate the questions directly or pass in your own answers.
Low level method, used internally to patch questions (from acknowledge()
and answer()
).
Most of the time, you won't need this.
Title of the news.