Starting TwitterUser to explore mentions behavior and possible bots.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-08-12 10:31:55 -05:00
parent 619379f154
commit a7d7b66403
6 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,6 @@
accessing
messagesAuthors
self includes at: 'users' ifAbsent: [ ^ nil ].
^ (self includes at: 'users') collect: [:userDict |
TwitterUser new fromDictionary: userDict
]

View File

@ -0,0 +1,3 @@
I model some fields of a Twitter user model as described in:
<https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/user>

View File

@ -0,0 +1,5 @@
accessing
fromDictionary: userDict
id := userDict at: 'id'.
name := userDict at: 'name'.
userName := userDict at: 'username'.

View File

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

View File

@ -0,0 +1,3 @@
accessing
userName
^ userName

View File

@ -0,0 +1,15 @@
{
"commentStamp" : "<historical>",
"super" : "Object",
"category" : "Datanalitica",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"id",
"name",
"userName"
],
"name" : "TwitterUser",
"type" : "normal"
}