Socialmetrica/Datanalitica.package/Tweet.class/instance/fromDictionary..st

9 lines
331 B
Smalltalk
Raw Normal View History

accessing
fromDictionary: aDictionary
created := (aDictionary at: 'created_at') asDateAndTime.
text := aDictionary at: 'text'.
id := aDictionary at: 'id'.
authorId := aDictionary at: 'author_id'.
user := aDictionary at: 'username' ifAbsent: [''] .
2021-07-16 12:00:58 +00:00
conversationId := aDictionary at: 'conversation_id' ifAbsent: [ '' ].
^ self