Starting with subtopics.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-08-22 18:14:33 -05:00
parent 4403c822b2
commit 75e05472b3
9 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,3 @@
accessing
addSubtopic: subtopicString
self subtopics at: subtopicString put: Set new.

View File

@ -0,0 +1,4 @@
accessing
language: isoLanguageCode
"isoLanguageCode follows the ISO 639-1 two letters convention"
language := isoLanguageCode

View File

@ -0,0 +1,3 @@
accessing
subtopics: subtopicsNamesArray
subtopicsNamesArray do: [:each | self addSubtopic: each ]

View File

@ -0,0 +1,3 @@
accessing
subtopics
^ subtopics ifNil: [ subtopics := Dictionary new ]

View File

@ -0,0 +1,15 @@
{
"commentStamp" : "",
"super" : "Object",
"category" : "Datanalitica-Datanalitica",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"language",
"name",
"subtopics"
],
"name" : "DiscourseTopic",
"type" : "normal"
}

View File

@ -13,7 +13,7 @@ asCardElement
margin: (BlInsets left: 20);
addChild: (BrLabel new
aptitude: BrGlamorousLabelAptitude;
text: '@' , self user name , ' | ' , self created asString;
text: '@' , self user userName , ' | ' , self created asString;
beSmallSize);
addChild: (BrLabel new
aptitude: BrGlamorousLabelAptitude;

View File

@ -2,4 +2,4 @@ accessing
printOn: aStream
super printOn: aStream.
aStream
nextPutAll: '(', self userName,')'
nextPutAll: '(@', self userName,')'

View File

@ -0,0 +1,5 @@
accessing
printOn: aStream
super printOn: aStream.
aStream
nextPutAll: '( ', self users size asString, ' users )'