PublicationContent<C> class abstract

this file contains:

class

interfaces, enums, extensions


  1. there is lots of arguments typed as Object, because they are potential to develop in the future. In consideration of MVP (minimum valuable product), those Object should be treated as String.

  2. Before I integrate all of my project, including 'template' project, in consideration of MVP, It's better not to implements JsonConverter.

  3. Before I build a content value system, which value indicates the user preference toward different content, and with better data structure, in consideration of MVP, I use List

  4. for all the content, id represents the identity among all the instance of entity, some entities have a v argument representing the visibility (private/protected/public) of instance. In the future, I assert that

    • if no v, id == "idFrom idInstance idTo"
    • if has v, id == "idFrom idInstance"
      • if private, v == null
      • if protected, v == idOtherUser || v == idGroup
      • if public, v.isEmpty == true ('public' is also a kind of group, see GroupScope)
      • when v == idGroup || v.isEmpty == true, I want to pack the content into a PublicationContent, which have some properties that helps group manager to keep the quality inside the group. In consideration of MVP, i skip all the content verification for now.
  5. In consideration of MVP, 'question, discussion, voting' system are not my first priority to implement

  6. some properties about ui (color, style ...) should not be contained in entity, I want to pack the ui-relative properties into a class in the future. In consideration of MVP, they should not be included in this package.

Constructors

PublicationContent()

Properties

content → C
no setter
hashCode int
The hash code for this object.
no setterinherited
idFrom String
no setter
idGroup String
no setter
publishStatus PublishStatus
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited