Software /
code /
verse
Comparison
plugins/pubsub.lua @ 333:36e9d5a2ae79
plugins.pubsub: Implement retract, purge and delete operations
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 10 Feb 2013 18:16:25 +0100 |
parent | 332:6ecf44918156 |
child | 337:8dce8240a77c |
comparison
equal
deleted
inserted
replaced
332:6ecf44918156 | 333:36e9d5a2ae79 |
---|---|
229 function pubsub_node:item(id, callback) | 229 function pubsub_node:item(id, callback) |
230 error("Not implemented yet."); | 230 error("Not implemented yet."); |
231 end | 231 end |
232 | 232 |
233 function pubsub_node:retract(id, callback) | 233 function pubsub_node:retract(id, callback) |
234 error("Not implemented yet."); | 234 self.stream:send_iq(pubsub_iq("set", self.service, nil, "retract", self.node, nil, id) |
235 end | 235 , callback); |
236 | 236 end |
237 function pubsub_node:purge(callback) | 237 |
238 error("Not implemented yet."); | 238 function pubsub_node:purge(notify, callback) |
239 end | 239 assert(not notify, "Not implemented yet."); |
240 | 240 self.stream:send_iq(pubsub_iq("set", self.service, xmlns_pubsub_owner, "purge", self.node) |
241 function pubsub_node:delete(callback) | 241 , callback); |
242 error("Not implemented yet."); | 242 end |
243 end | 243 |
244 function pubsub_node:delete(redirect_uri, callback) | |
245 assert(not redirect_uri, "Not implemented yet."); | |
246 self.stream:send_iq(pubsub_iq("set", self.service, xmlns_pubsub_owner, "delete", self.node) | |
247 , callback); | |
248 end |