using System;
|
using System.Collections.Generic;
|
using HDL_ON.UI.UI2;
|
using Shared;
|
|
namespace HDL_ON.Entity
|
{
|
|
public class Inverter
|
{
|
static Inverter _control;
|
public static Inverter Ins
|
{
|
get
|
{
|
if (_control == null)
|
{
|
_control = new Inverter();
|
}
|
return _control;
|
}
|
}
|
|
|
WebView _h5Page;
|
|
string showPageUrl = "";
|
|
public WebView H5Page
|
{
|
get
|
{
|
if(_h5Page == null)
|
{
|
_h5Page = new WebView();
|
//_h5Page.CallJS("action('back')");
|
}
|
|
|
return _h5Page;
|
}
|
set
|
{
|
_h5Page = value;
|
}
|
}
|
/// <summary>
|
/// 加载指定Url的webview
|
/// </summary>
|
/// <param name="showUrl"></param>
|
public void ShowWebviewFormUrl(string showUrl)
|
{
|
|
if (showUrl == showPageUrl)
|
{
|
return;
|
}
|
showPageUrl = showUrl;
|
_h5Page.LoadFileUrl(showPageUrl);
|
}
|
|
}
|
|
/// <summary>
|
/// 光伏数据
|
/// </summary>
|
public class InverterInfo
|
{
|
public InverterInfo()
|
{
|
}
|
|
public string gatewayId;// 网关Id long
|
public string gatewayName;//网关名称 String
|
public string deviceId;// 设备id Long
|
public string name;//设备名称 string
|
public string spk;//设备spk string
|
public string sid;//设备sid string
|
public string oid;//设备oid string
|
public string omodel;// 设备型号 string
|
public string osn;// 设备sn
|
public string powerPvNow;// 当前发电功率 String
|
public string totalElectricityPvToday;// 今日发电量 String
|
public string systemStatus;// 状态 String
|
public string inv;// 逆变器状态 String
|
public List<InverterStatusInfo> status = new List<InverterStatusInfo>();// 属性当前状态 array
|
|
}
|
/// <summary>
|
/// 逆变器状态
|
/// </summary>
|
public class InverterStatusInfo
|
{
|
public string key;// 属性名称 string
|
public string value;// 属性值 string
|
}
|
}
|