Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md « db « lib « build - github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fce2e82429cb1f98821de56d56f3b8e213fdf050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
lib/db
===

This are the Entity and Mappers of the different stanza types.
The entities are used to:
 - store them in the DB. (e.g. the Message entity, the Presence entity)
 - to easily return them to the client via the polling system 
 (e.g. Message entity, Presence entity (these are stored inside the ojsxc_stanza table.)
 - directly return them to te client (e.g. IQRoster entity)
 - parse an incoming stanza to an object (This is currently only done for the 
 incoming Presence stanza.)

The following mappers are used: 
 - StanzaMapper -> parent of all the other mappers
 - MessageMapper -> used to store Message entities inside the longpolling table.
 - PresenceMapper -> used to save, update and fetch presences of the users
 - IQRoster doesn't have a mapper since this won't be saved in the DB.