Readonly
groupOptional
pictureReadonly
profileReturns the name of the loaded Group object.
Returns the profile version that was loaded.
Load a specific profile version.
Save the profile to disk and load the latest version.
Why is there no pure save() function? The cause are CRDTs. The object that is eventually written to disk might differ from the current state of this instance. This happens when new data was received via chum since the last load. This means that we don't have a hash representing the current state.
TODO: It is possible to write the intermediary state and obtain a hash. So we can implement a pure save() function. But this requires the lower levels to write the top level object of the tree and return the corresponding hash to the caller. The storeVersionedObjectCRDT and the plan interfaces don't support that right now in a easy to grasp way.
Static
constructStatic
constructStatic
constructConstruct a new GroupModel with a specific version loaded.
Static
constructCreate a group and profile if they do not exist.
If it already exists, it will simply return the existing group.
Optional
groupName: stringName if not given the internal name will be random, and the profile name will be 'unnamed group'
The latest version of the group or an empty group.
Model's Base Class.