using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace GDNXFD.Data { [DataContract] public class SSPredictModel { //风机ID [DataMember] public string WindturbineId { get; set; } //对象类型 [DataMember] public string StationId { get; set; } //启或停 0-停机 1-启动 [DataMember] public int SSFlag { get; set; } //时间 [DataMember] public DateTime PredictTime { get; set; } public string Num { get { string[] arr = WindturbineId.Split('_'); if (arr!= null && arr.Length > 1) { return arr[1].Trim(); } return ""; } } } }