#ifndef FMDEFINE_H
#define FMDEFINE_H

#define INIFILE_NAME        "update.ini"
#define INIPATH_EXELIST     "ExeList/value"
#define INIPATH_UPDATE_URL  "ServerUrl/update"
#define INIPATH_REPORT_URL  "ServerUrl/report"
#define INIPATH_VERSION     "SoftInfo/version"
#define INIPATH_PARTNERID   "SoftInfo/partnerId"
#define INIPATH_TIMEOUT0    "SoftInfo/timeout0"
#define INIPATH_TIMEOUT1    "SoftInfo/timeout1"

#define SERVICE_NAME        "Fmupdate"
#define SERVICE_DESC        "用于非码程序的升级服务"

#define KEEP_INTERVAL       5*1000
#define CHECK_INTERVAL      10*60*1000
#define NETWORK_TIMEOUT     20*1000

// updateRequest
#define JSON_PARTNERID      "PartnerId"
#define JSON_STOREID        "StoreId"
#define JSON_POSNO          "PosNO"
#define JSON_VERSION        "UpdateVer"
// updateResponse
#define JSON_STATUSCODE     "StatusCode"
#define JSON_NEEDUPDATE     "NeedUpdate"
#define JSON_UPDATEPATH     "UpdatePath"
#define JSON_MSG            "Msg"
#define JSON_NEXTCHECK      "NextCheck"
#define JSON_PLANID         "PlanId"
// filesInfo
#define JSON_PATH           "path"
#define JSON_MD5            "md5"

// reportRequest
#define JSON_UPDATESTATE    "UpdateState"

#endif // FMDEFINE_H
