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

- old
+ new

@@ -23,10 +23,11 @@ require 'imperituroard/projects/iot' require 'imperituroard/projects/dns' require 'imperituroard/platforms/cps/qps_connector' require 'imperituroard/platforms/public/telegram' require 'imperituroard/projects/ukaz60' +require 'imperituroard/projects/mhub/gms' require 'json' require 'ipaddr' require 'date' require 'net/http' @@ -338,9 +339,29 @@ mhub_connector.get_send_message_2(params, ip_src, ip_real, ip_vip) end def recieve_delivery_report(params, ip_src, ip_real, ip_vip) mhub_connector.rec_deliv_report_2(params, ip_src, ip_real, ip_vip) + end + +end + + +#2020.09.02 function for some procedure for get message status +class GmsFunctions_2 + + attr_accessor :gms_func + + def initialize(gms_t_login, gms_t_password, gms_r_login, gms_r_password, telegram_api_url, telegram_chat_id) + @gms_func = Gmsgms_2.new(gms_t_login, gms_t_password, gms_r_login, gms_r_password, telegram_api_url, telegram_chat_id) + end + + def get_t_status_external(external_id) + gms_func.get_t_status_external_2(external_id) + end + + def get_r_status_external(external_id) + gms_func.get_r_status_external_2(external_id) end end \ No newline at end of file