Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d83990ecf5
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (24 sloc) 0.737 kB
module Push
class FeedbackProcessor
def self.process(feedback)
if feedback.instance_of? Push::FeedbackGcm
if feedback.follow_up == 'delete'
# TODO: delete gcm device
elsif feedback.follow_up == 'update'
# TODO: update gcm device
# device = feedback.update_to
end
elsif feedback.instance_of? Push::FeedbackC2dm
if feedback.follow_up == 'delete'
# TODO: delete c2dm device
end
elsif feedback.instance_of? Push::FeedbackApns
if feedback.follow_up == 'delete'
# TODO: delete apns device
end
else
Push::Daemon.logger.info("[FeedbackProcessor] Unknown feedback type")
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.