public LinkEntity(LinkEntityDataset val) : base(null, val.MapTile) { this.Guid = val.Guid; this.Team = (IngressTeam)val.Team; this.CreateDate = val.LastRefresh; this.OGuid = val.OGuid; this.OPos = new PointD(val.OPosX, val.OPosY); this.DGuid = val.DGuid; this.DPos = new PointD(val.DPosX, val.DPosY); }
public LinkEntityDataset parseToDataset() { LinkEntityDataset ret = new LinkEntityDataset(); ret.Guid = this.Guid; ret.Team = (int)this.Team; ret.LastRefresh = this.CreateDate; ret.OGuid = this.OGuid; ret.OPosX = this.OPos.X; ret.OPosY = this.OPos.Y; ret.DGuid = this.DGuid; ret.DPosX = this.DPos.X; ret.DPosY = this.DPos.Y; return(ret); }