Added feature to retrieve song records in json format. One issue is that the json file is in one line
This commit is contained in:
@@ -16,12 +16,19 @@ namespace Managers
|
||||
CommitManager(Models::IcarusAction);
|
||||
|
||||
void commitAction();
|
||||
|
||||
enum RetrieveTypes
|
||||
{
|
||||
songs
|
||||
};
|
||||
|
||||
private:
|
||||
Models::Token parseToken(Models::API);
|
||||
|
||||
void initializeMapActions();
|
||||
void deleteSong();
|
||||
void downloadSong();
|
||||
void retrieveObjects();
|
||||
void uploadSong();
|
||||
|
||||
enum ActionValues
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
#ifndef RETRIEVERECORDS_H_
|
||||
#define RETRIEVERECORDS_H_
|
||||
|
||||
#include "Managers/CommitManager.h"
|
||||
#include "Models/API.h"
|
||||
#include "Models/Token.h"
|
||||
|
||||
namespace Syncers
|
||||
{
|
||||
class RetrieveRecords
|
||||
{
|
||||
public:
|
||||
RetrieveRecords();
|
||||
RetrieveRecords(Models::API, Models::Token);
|
||||
|
||||
void retrieve(Managers::CommitManager::RetrieveTypes);
|
||||
private:
|
||||
void fetchSongs();
|
||||
|
||||
Models::API api;
|
||||
Models::Token token;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user