outsourced main method of ip refresh and added some doc

This commit is contained in:
2019-08-02 22:44:42 +02:00
parent 700d7912df
commit f325c3a371
8 changed files with 82 additions and 43 deletions

14
inc/IPRefresher.h Normal file
View File

@ -0,0 +1,14 @@
//
// Created by lukas on 02.08.19.
//
#pragma once
class IPRefresher {
public:
/**
* refresh ip address on Dynu server
*/
void checkIPAdress();
};

View File

@ -3,6 +3,7 @@
//
#pragma once
#include <string>
class Logger {
public:
/**

View File

@ -16,7 +16,14 @@ public:
*/
void sendMessage(std::string text);
/**
* init Telegram api with apikey and chatid
* @param apikey recieved API key
* @param chatid chatid where bot should post into
*/
void init(std::string apikey, std::string chatid);
private:
const std::string apikey = "717213769:AAHan1nSXhUsxLJAN1Dv8Oc0z8wqwDdYPn4";
const std::string chatid = "618154204";
std::string apikey;
std::string chatid;
};