Initial commit of IcarusDownloadManager
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#ifndef UPLOAD_H_
|
||||
#define UPLOAD_H_
|
||||
|
||||
#include<string>
|
||||
|
||||
#include<nlohmann/json.hpp>
|
||||
|
||||
#include"Managers/FileManager.h"
|
||||
#include"Models/Song.h"
|
||||
|
||||
|
||||
namespace Syncers
|
||||
{
|
||||
class Upload
|
||||
{
|
||||
public:
|
||||
Upload();
|
||||
Upload(std::string);
|
||||
|
||||
void uploadSong();
|
||||
|
||||
private:
|
||||
Managers::FileManager fMgr;
|
||||
Models::Song song;
|
||||
std::string apiUrl{"http://192.168.1.24"};
|
||||
std::string apiEndPoint{"/api/song"};
|
||||
int port{9349};
|
||||
|
||||
void configureSong();
|
||||
void printSongDetails();
|
||||
void printJsonData(nlohmann::json);
|
||||
|
||||
nlohmann::json serializeObject();
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user