Структура конфигурационных файлов
FTPSettings.json - настройки подключения к FTP
{
"Server": "127.0.0.1",
"Username": "FTPusername",
"Password": "FTPpassword",
"rootPath": "/mag_obmen"
}
YDSettings.json - настройки подключения к Yndex API
{
"AccessToken": "you access token",
"rootPath": "/mag_obmen"
}
ProgramSettings.json
{
"TransferSide": "Mag", (Mag - Работа на стороне магазина
Server - Работа на стороне сервера)
"RootPath": "D:\\VSProjects\\mag_obmen\\mag_folders",
"ScanInterval": 10, (Переодичность проверки каталогов)
}
MagSettings.json
[
{
"Name": "Asino",
"KkmNumber": 1,
"InFolderName": "In",
"OutFolderName": "Out",
"Otovarka": true,
"OtovarkaFolderName": "Otovarka",
"Transport": "yd"
},
{
"Name": "Asino",
"KkmNumber": 2,
"InFolderName": "In1",
"OutFolderName": "Out1",
"Otovarka": false,
"OtovarkaFolderName": "Otovarka",
"Transport": "ftp"
}
]