package com.yeejoin.amos.api.householdapi.constant;

import java.time.format.DateTimeFormatter;
import java.util.HashMap;

/**
 * 首航常量
 */
public class SoFarConstant {
	public static final HashMap<String, String> stationStaus = new HashMap<String, String>() {
		{
			put("1", "在线");
			put("0", "离线");
			put("2", "报警");
		}
	};

	public static String baseurl = "https://openapi.sofarsolarmonitor.com";
	public static String appId = "447430219192733696";
	public static String appSecret = "5881ee8c062817016a2b34425c45937d";
	public static String corporationId = "447430928264990720";
	public static String account = "18120415291";

	public static String password = "ZXNK123456..";

	public static String tokenurl = "/account/auth/createToken";
	public static String stationListUrl = "/station/v1.0/list";
	public static String stationUrl = "/station/v1.0/base";
	public static String currentData = "/device/v1.0/currentData";
	public static String nbqlist = "/station/v1.0/device?language=zh";
	public static String historical = "/device/v1.0/historical";
	public static String stationhisUrl = "/station/v1.0/plantHistory";

	public static String alert = "/station/v1.0/alert";
	public static String equipComm = "/device/v1.0/equipComm";
	public static String alertDetail = "/device/v1.0/alertDetail";

	public static String stationListStatusUrl = "/api/OpenApi/QueryPowerStationMonitor";
	public static String stationDetailUrl = "/api/OpenApi/GetPowerStationMonitorDetail";
	public static String collectorListUrl = "/v1/api/collectorList";
	public static String collectorDetailUrl = "/v1/api/collectorDetail";
	public static String inverterListUrl = "/v1/api/inverterList";
	public static String inverterDetailUrl = "/v1/api/inverterDetail";
	public static String alarmListUrl = "/v1/api/alarmList";
	public static String stationDayGenUrl = "/v1/api/stationDayEnergyList";
	public static String stationMonthEnergyList = "/v1/api/stationDayEnergyList";
	public static String stationYearEnergyList = "/v1/api/stationDayEnergyList";
	public static String inverterDayURL = "/v1/api/inverterDay";
	public static String inverterMonthURL = "/v1/api/inverterMonth";
	public static String inverterYearURL = "/v1/api/inverterYear";
	public static String resovleRule_data_page_records = "data,page,records";
	public static String resovleRule_data_list = "data,list";
	public static String resovleRule_data_records = "data,records";
	public static String resovleRule_data = "stationList";

	public static String deviceListItems = "deviceListItems";

	public static String communication = "communication";

	public static String stationAlertItems = "stationAlertItems";
	public static String dataList = "dataList";
	public static String paramDataList = "paramDataList";
	public static String requestPost = "POST";
	public static String requestGet = "GET";
	public static String datePattern = "yyyy-MM-dd HH:mm:ss.SSS";
	public static DateTimeFormatter formatter = DateTimeFormatter.ofPattern(datePattern);
	public static Double kwhToMwh = 0.0001;
	public static Double mwhTokwh = 1000.0;
}
