lib/smshelper/api/aql.rb in smshelper-0.3.1 vs lib/smshelper/api/aql.rb in smshelper-0.4.0

- old
+ new

@@ -30,9 +30,19 @@ def get_status raise NotImplementedError, "Aql does not implement status check" end + def get_callback_response(args = {}) + DeliveryReport.new( + :message_id => args['message_id'], + :timestamp => Time.now, + :delivered => ((args['status'] == '1') ? true : false), + :original_params => args + ) + end + + private def process_response_code(code) (code =~ /SMS successfuly queued/) ? true : false end def massage_dlr_url(url)