Those literals are assigned then compared somewhere else in the code. When those literals are carrying a state, it is recommended to assign them to a constant, to ensure that both parts of the application use the same values..
| Literal | Assignations | Comparisons |
| 10 |
|
|
| 80 |
|
|
| post |
|
|
| hidden |
|
|
| default |
|
|
| public |
|
|
| note |
|
|
| success |
|
|
| none |
|
|
| / |
|
|
| following |
|
|
| image/jpeg |
|
|
| image/gif |
|
|
| all |
|
|
| 1 |
|
|
| rsvp |
|
|
| reply |
|
|
| enabled |
|
|
| audio |
|
|
| bookmark |
|
|
| like |
|
|
| photo |
|
|
| video |
|
|
| json |
|
|
| application/octet-stream |
|
|
| comment |
|
|
| new known site |
|
|
| local |
|
|
| checkin |
|
|
| no category |
|
|
| site |
|
|
| untitled |
|
|