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.
96 lines
2.4 KiB
96 lines
2.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace PCScreenSavers.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.code = item.code;
|
|
info.img = item.img;
|
|
info.time = item.time;
|
|
info.effect = item.effect;
|
|
info.text = item.text;
|
|
info.color = item.color;
|
|
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.duration = item.duration;
|
|
info.shopCode = item.shopCode;
|
|
model.ResList.Add(info);
|
|
}
|
|
|
|
return model;
|
|
}
|
|
}
|
|
|
|
public class ResInfo
|
|
{
|
|
[XmlAttribute("id")]
|
|
public string id;
|
|
[XmlAttribute("code")]
|
|
public string code;
|
|
|
|
[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("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("duration")]
|
|
public string duration;
|
|
|
|
[XmlAttribute("shopCode")]
|
|
public string shopCode;
|
|
}
|
|
}
|
|
|