committed a notes file by accident, sry [ci skip]
This commit is contained in:
parent
27a4c1bf2d
commit
3874c40084
1 changed files with 0 additions and 33 deletions
|
|
@ -1,33 +0,0 @@
|
||||||
#dispatching
|
|
||||||
#a class that figures out the markup of an object
|
|
||||||
class Federated::Presenter
|
|
||||||
end
|
|
||||||
|
|
||||||
#a class that detects the audience of a post
|
|
||||||
class Federated::Audience
|
|
||||||
end
|
|
||||||
|
|
||||||
#this class dispatchs the post to services, like facebook, twitter, etc
|
|
||||||
class ServiceDispatcher
|
|
||||||
#interacts with a single post, and many provided services
|
|
||||||
end
|
|
||||||
|
|
||||||
#Receiving Phases
|
|
||||||
#receive request => check author
|
|
||||||
#xml payload
|
|
||||||
#decode
|
|
||||||
#convert to meta object
|
|
||||||
#perfom various validations
|
|
||||||
#recieve! <= save object, if applicable
|
|
||||||
#after_receive hook
|
|
||||||
|
|
||||||
|
|
||||||
Ideas:
|
|
||||||
Federated objects are delegated stubs of real objects, with converstion constuctors
|
|
||||||
- this turns receive to "make model level object from payload"
|
|
||||||
- seperate validations and checking with persistance and noticiation layer
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
http => deserliaization/decoding/descrypting => meta object => validations => receive => cleanup
|
|
||||||
|
|
||||||
Loading…
Reference in a new issue