PublicationContent<C> class
abstract
this file contains:
class
- Content (Note, ...;Submission, ...)
- LC (Message, ...) (Linked Content)
- CMS (Notebook, ...;Inbox) (Content Management System)
interfaces, enums, extensions
- Status (WorkStatus, ...)
- Scope (AssignmentTaskScope, ...)
- Type (FoundationType, ...)
- extensions (MessageExtension, ...)
-
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.
-
Before I integrate all of my project, including 'template' project, in consideration of MVP, It's better not to implements
JsonConverter
. -
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
-
for all the content,
id
represents the identity among all the instance of entity, some entities have av
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.
- if private,
- if no
-
In consideration of MVP, 'question, discussion, voting' system are not my first priority to implement
-
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
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