Persistance: Object Database mapper.
This commit is contained in:
parent
128c557d2f
commit
d23211abbc
@ -19,5 +19,6 @@ getMessages
|
|||||||
current queries add: customQuery.
|
current queries add: customQuery.
|
||||||
lastTweets add: current.
|
lastTweets add: current.
|
||||||
].
|
].
|
||||||
^ lastTweets
|
self tweets: lastTweets.
|
||||||
|
^ self tweets
|
||||||
|
|
@ -1,8 +1,9 @@
|
|||||||
accessing
|
accessing
|
||||||
reStoreDefinition
|
reStoreDefinition
|
||||||
^ super reStoreDefinition
|
^ super reStoreDefinition
|
||||||
define: #id as: String;
|
defineAsID: #id;
|
||||||
define: #text as: String;
|
define: #text as: String;
|
||||||
define: #created as: String;
|
define: #created as: String;
|
||||||
defineAsID: #id;
|
define: #user as: TwitterUser;
|
||||||
|
define: #timelines as: (Dictionary of: String -> String);
|
||||||
yourself
|
yourself
|
@ -2,4 +2,4 @@ accessing
|
|||||||
timelines
|
timelines
|
||||||
"A dictionary of several the timelines where this tweet appears.
|
"A dictionary of several the timelines where this tweet appears.
|
||||||
The key is the user's timeline and the value is the message id before this particular message appears in such user's timeline."
|
The key is the user's timeline and the value is the message id before this particular message appears in such user's timeline."
|
||||||
^ self metadata at: 'timelines' ifAbsentPut: [ Dictionary new ].
|
^ timelines ifNil: [ timelines := Dictionary new ].
|
@ -13,7 +13,8 @@
|
|||||||
"conversationId",
|
"conversationId",
|
||||||
"user",
|
"user",
|
||||||
"metadata",
|
"metadata",
|
||||||
"metrics"
|
"metrics",
|
||||||
|
"timelines"
|
||||||
],
|
],
|
||||||
"name" : "Tweet",
|
"name" : "Tweet",
|
||||||
"type" : "normal"
|
"type" : "normal"
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
accessing
|
||||||
|
reStoreDefinition
|
||||||
|
^ super reStoreDefinition
|
||||||
|
define: #id as: String;
|
||||||
|
define: #userName as: String;
|
||||||
|
define: #profileImageUrl as: String;
|
||||||
|
yourself.
|
Loading…
Reference in New Issue
Block a user