devTeam and Bot as parameters on fileCloud getFile

This commit is contained in:
Luis Fernando Molina committed 2018-03-09 16:54:27 +01:00
1 parent d868d768ac
commit 674ce0a705
7 files changed
+18 -7

No files matched your search

Binary file not shown.
+1 -1
View File
@@ -26,7 +26,7 @@ function newFile() {
/* Now we will get the file */
fileCloud.getFile(pSet, exchange, pMarket, undefined, undefined, onFileReceived);
fileCloud.getFile(pDevTeam, pBot, pSet, exchange, pMarket, undefined, undefined, onFileReceived);
function onFileReceived(pFile) {
+1 -1
View File
@@ -40,7 +40,7 @@ function newFileCache() {
if (pSet.validPeriods.includes(periodName) === true) {
fileCloud.getFile(pSet, exchange, pMarket, periodName, undefined, onFileReceived);
fileCloud.getFile(pDevTeam, pBot, pSet, exchange, pMarket, periodName, undefined, onFileReceived);
function onFileReceived(file) {
+3 -1
View File
@@ -18,7 +18,7 @@ function newFileCloud() {
}
function getFile(pSet, pExchange, pMarket, pPeriodName, pDatetime, callBackFunction) {
function getFile(pSet, pDevTeam, pBot, pExchange, pMarket, pPeriodName, pDatetime, callBackFunction) {
let fileName = pSet.fileName;
let filePath = pSet.filePath;
@@ -37,6 +37,8 @@ function newFileCloud() {
fileName = fileName.replace("@AssetA", pMarket.assetA);
fileName = fileName.replace("@AssetB", pMarket.assetB);
filePath = filePath.replace("@DevTeam", pDevTeam.codeName);
filePath = filePath.replace("@Bot", pBot.codeName);
filePath = filePath.replace("@Exchange", pExchange.name);
filePath = filePath.replace("@Period", pPeriodName);
+6 -2
View File
@@ -20,17 +20,21 @@ function newFileCursor() {
let market;
let exchange;
let fileCloud;
let devTeam;
let bot;
let thisSet;
let periodName;
let timePeriod;
return fileCursor;
function initialize(pFileCloud, pSet, pExchange, pMarket, pPeriodName, pTimePeriod, pCursorDate, pCurrentTimePeriod, callBackFunction) {
function initialize(pFileCloud, pDevTeam, pBot, pSet, pExchange, pMarket, pPeriodName, pTimePeriod, pCursorDate, pCurrentTimePeriod, callBackFunction) {
market = pMarket;
exchange = pExchange;
fileCloud = pFileCloud;
devTeam = pDevTeam;
bot = pBot;
thisSet = pSet;
periodName = pPeriodName;
cursorDate = pCursorDate;
@@ -291,7 +295,7 @@ function newFileCursor() {
if (fileCursor.files.get(dateString) === undefined) { // We dont reload files we already have.
fileCloud.getFile(thisSet, exchange, market, periodName, targetDate, onFileReceived);
fileCloud.getFile(devTeam, bot, thisSet, exchange, market, periodName, targetDate, onFileReceived);
} else {
+1 -1
View File
@@ -49,7 +49,7 @@ function newFileCursorCache() {
if (pSet.validPeriods.includes(periodName) === true) {
let fileCursor = newFileCursor();
fileCursor.initialize(fileCloud, pSet, exchange, pMarket, periodName, periodTime, pDatetime, pTimePeriod, onFileReceived);
fileCursor.initialize(fileCloud, pDevTeam, pBot, pSet, exchange, pMarket, periodName, periodTime, pDatetime, pTimePeriod, onFileReceived);
fileCursors.set(periodTime, fileCursor);
+6 -1
View File
@@ -100,6 +100,11 @@ function newTimelineChart() {
initializePlotter(loadingProductCards[i]);
}
/* Finally we initialize the Competition Plotter. */
}
function initializePlotter(pProductCard) {
@@ -111,7 +116,7 @@ function newTimelineChart() {
/*
Before Initializing the Storage, we will put put the Product Card to listen to the events the storage will raise every time a file is loaded,
Before Initializing the Storage, we will put the Product Card to listen to the events the storage will raise every time a file is loaded,
so that the UI can somehow show this. There are different types of events.
*/