Saving changes

This commit is contained in:
kdeng00
2022-01-09 00:31:43 -05:00
parent a1b2e5f64a
commit e90278995a
8 changed files with 60 additions and 70 deletions
+2
View File
@@ -78,6 +78,8 @@ private:
void printAction() noexcept;
void printFlags() noexcept;
std::vector<std::string> parsedFlags();
std::string action;
std::vector<Models::Flags> flags;
+3
View File
@@ -55,6 +55,9 @@ private:
void downloadSong();
void retrieveObjects();
void uploadSong();
Models::Token parseToken(Models::API);
// Uploads a single song. The song is constructed from a metadata file that contains
// information about the album the song is from. Also, the cover art of the song must
// be present.
-7
View File
@@ -13,13 +13,6 @@ public:
std::string value;
};
struct Flags
{
std::string flag;
std::string value;
};
}
#endif
+11 -10
View File
@@ -1,18 +1,18 @@
#ifndef UPLOAD_H_
#define UPLOAD_H_
#include<filesystem>
#include<string>
#include<vector>
#include <filesystem>
#include <string>
#include <vector>
#include<nlohmann/json.hpp>
#include <nlohmann/json.hpp>
#include"Managers/CommitManager.h"
#include"Managers/FileManager.h"
#include"Models/API.h"
#include"Models/Song.h"
#include"Models/Token.h"
#include"Models/UploadForm.h"
#include "Managers/CommitManager.h"
#include "Managers/FileManager.h"
#include "Models/API.h"
#include "Models/Song.h"
#include "Models/Token.h"
#include "Models/UploadForm.h"
namespace fs = std::filesystem;
@@ -23,6 +23,7 @@ namespace Syncers
class Upload
{
public:
Upload() = default;
Upload(Models::API api, Models::Token token) : m_token(token), api(api)
{
this->api.endpoint = "song/data";
+3
View File
@@ -21,6 +21,9 @@ public:
}
void initializeValues();
template<typename T>
void printValue(T val);
private:
};