You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
3.3 KiB
126 lines
3.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace Container.Model
|
|
{
|
|
[XmlRoot("root")]
|
|
public class ScreenSavers
|
|
{
|
|
[XmlElement("code")]
|
|
public string Code;
|
|
|
|
[XmlArray("items"), XmlArrayItem("item")]
|
|
public List<ResInfo> ResList = new List<ResInfo>();
|
|
|
|
public ScreenSavers Clone()
|
|
{
|
|
ScreenSavers model = new ScreenSavers();
|
|
model.Code = this.Code;
|
|
foreach (var item in this.ResList)
|
|
{
|
|
ResInfo info = new ResInfo();
|
|
info.id = item.id;
|
|
info.img = item.img;
|
|
info.time = item.time;
|
|
info.effect = item.effect;
|
|
info.text = item.text;
|
|
info.color = item.color;
|
|
info.code = item.code;
|
|
info.screenmatch = item.screenmatch;
|
|
//info.angle = item.angle;
|
|
info.expirydate = item.expirydate;
|
|
info.launchtime = item.launchtime;
|
|
info.floorName = item.floorName;
|
|
info.logoPath = item.logoPath;
|
|
info.shopName = item.shopName;
|
|
info.protype = item.protype;
|
|
info.xaxis = item.xaxis;
|
|
info.yaxis = item.yaxis;
|
|
info.houseNum = item.houseNum;
|
|
info.devNum = item.devNum;
|
|
info.floorOrder = item.floorOrder;
|
|
info.shopFormatIcon = item.shopFormatIcon;
|
|
info.shopFormatName = item.shopFormatName;
|
|
info.applets = item.applets;
|
|
model.ResList.Add(info);
|
|
}
|
|
|
|
return model;
|
|
}
|
|
}
|
|
|
|
public class ResInfo
|
|
{
|
|
[XmlAttribute("id")]
|
|
public string id;
|
|
|
|
[XmlAttribute("img")]
|
|
public string img;
|
|
|
|
[XmlAttribute("time")]
|
|
public string time;
|
|
|
|
[XmlAttribute("effect")]
|
|
public string effect;
|
|
|
|
[XmlAttribute("text")]
|
|
public string text;
|
|
|
|
[XmlAttribute("color")]
|
|
public string color;
|
|
|
|
[XmlAttribute("code")]
|
|
public string code;
|
|
|
|
[XmlAttribute("screenmatch")]
|
|
public string screenmatch;
|
|
|
|
[XmlAttribute("launchtime")]
|
|
public string launchtime;
|
|
|
|
[XmlAttribute("expirydate")]
|
|
public string expirydate;
|
|
|
|
//[XmlAttribute("angle")]
|
|
//public string angle;
|
|
|
|
[XmlAttribute("floorName")]
|
|
public string floorName;
|
|
|
|
[XmlAttribute("shopName")]
|
|
public string shopName;
|
|
|
|
[XmlAttribute("logoPath")]
|
|
public string logoPath;
|
|
|
|
[XmlAttribute("protype")]
|
|
public string protype;
|
|
|
|
[XmlAttribute("houseNum")]
|
|
public string houseNum;
|
|
|
|
[XmlAttribute("xaxis")]
|
|
public string xaxis;
|
|
|
|
[XmlAttribute("yaxis")]
|
|
public string yaxis;
|
|
|
|
[XmlAttribute("devNum")]
|
|
public string devNum;
|
|
|
|
[XmlAttribute("floorOrder")]
|
|
public string floorOrder;
|
|
|
|
[XmlAttribute("shopFormatIcon")]
|
|
public string shopFormatIcon;
|
|
[XmlAttribute("shopFormatName")]
|
|
public string shopFormatName;
|
|
|
|
[XmlAttribute("applets")]
|
|
public string applets;
|
|
}
|
|
}
|
|
|