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
#publicPrivate
Readonly
#questionPrivate
#readPrivate
Readonly
#startPrivate
Optional
Readonly
#titlePrivate
#stateInternal helper to get the current news state information.
Whether this news have been acknowledged or not.
This is not the same as reading the news, see read
property.
Date when the news have been acknowledged.
Only available if acknowledged
is true
.
Name of the author of the information / survey.
"John D."
HTML string containing the news.
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.
Low level data about the "question" contained inside this information.
You can use this to serialize the question and
finally send it back to the server using pronote.patchNewsState(data, [question], extra)
.
Internally, acknowledged
, content
, attachments
, ... are based on this,
we're just renaming the properties and adding some sugar on top of it.
Most of the time, you won't need this, but it's here if you need it.
Whether this news have been read or not.
Will acknowledge the news if needed,
so if the news doesn't need to be acknowledged (!needToAcknowledge
)
or is already acknowledged
, we will just do the read step.
When acknowledging, the news will be directly marked as read.
If you want to change this behavior, you can change the alsoMarkAsRead
parameter.
You can't un-acknowledge a news.
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.