lib/imperituroard.rb in imperituroard-1.1.7 vs lib/imperituroard.rb in imperituroard-1.1.8

- old
+ new

@@ -267,11 +267,22 @@ # answer = {:code=>200, :result=>"Success", :body=>{:processednum=>1, :failednum=>1, :deviceserr=>[{:failedimei=>524523654366}]}} def set_data_replace(soapgw_params, real_ip, remote_ip) iot_connector.set_data_replace_2(soapgw_params, real_ip, remote_ip) end + #14 integration with SPA + # add imei to correct profile + def spa_service_set(soapgw_params, real_ip, remote_ip) + #imei + #imsi + #msisdn + #unp + #note + #descriptiot + end + def logger_to_audit_database(proc_name, src_ip, input_json, output_json, real_ip) mongo_client.audit_logger(proc_name, src_ip, input_json, output_json, real_ip) end @@ -429,5 +440,19 @@ def no_pasaran ukaz60_func.no_pasaran end end + + +class Autovpn + attr_accessor :vpn_connector + + def initialize (mongo_vpn_ip, mongo_vpn_port, mongo_vpn_database) + @vpn_connector = Autovpn.new(mongo_vpn_ip, mongo_vpn_port, mongo_vpn_database) + end + + def vpn_add_msisdn_by_example(new_msisdn, example_msisdn) + vpn_connector.vpn_add_msisdn_by_example_2(new_msisdn, example_msisdn) + end + +end \ No newline at end of file