Tweet ODBM preliminar model working. TwitterUser storage needs fixing.
This commit is contained in:
parent
20f12bfcfc
commit
9d3769b21a
@ -4,6 +4,6 @@ reStoreDefinition
|
|||||||
defineAsID: #id;
|
defineAsID: #id;
|
||||||
define: #text as: String;
|
define: #text as: String;
|
||||||
define: #created as: String;
|
define: #created as: String;
|
||||||
define: #user as: TwitterUser;
|
define: #authorId as: String;
|
||||||
define: #timelines as: (Dictionary of: String -> String);
|
define: #timelines as: (Dictionary of: String -> String);
|
||||||
yourself
|
yourself
|
3
Socialmetrica.package/Tweet.class/instance/authorId.st
Normal file
3
Socialmetrica.package/Tweet.class/instance/authorId.st
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
authorId
|
||||||
|
^ authorId ifNil: [ self user id ]
|
@ -6,4 +6,5 @@ fromNitterRssItem: xmlItem
|
|||||||
userName: author .
|
userName: author .
|
||||||
created := (xmlItem xpath: 'pubDate') stringValue.
|
created := (xmlItem xpath: 'pubDate') stringValue.
|
||||||
text := (xmlItem xpath: 'description') stringValue.
|
text := (xmlItem xpath: 'description') stringValue.
|
||||||
id := ((xmlItem xpath: 'guid') stringValue splitOn: '/') last copyReplaceAll: '#m' with: ''
|
id := ((xmlItem xpath: 'guid') stringValue splitOn: '/') last copyReplaceAll: '#m' with: ''.
|
||||||
|
authorId := self user id.
|
@ -1,7 +1,8 @@
|
|||||||
accessing
|
accessing
|
||||||
reStoreDefinition
|
reStoreDefinition
|
||||||
^ super reStoreDefinition
|
^ super reStoreDefinition
|
||||||
define: #id as: String;
|
defineAsID: #id;
|
||||||
define: #userName as: String;
|
define: #userName as: String;
|
||||||
define: #profileImageUrl as: String;
|
define: #profileImageUrl as: String;
|
||||||
|
define: #profileBio as: String;
|
||||||
yourself.
|
yourself.
|
Loading…
Reference in New Issue
Block a user