public static bool UpdateGeocacheImageData(Framework.Data.GeocacheImage l, Framework.Data.GeocacheImage newData) { bool result = false; if (l.ID == newData.ID) { l.UpdateFrom(newData); result = true; } return(result); }
public static Framework.Data.GeocacheImage GeocacheImage(Framework.Interfaces.ICore core, OKAPIService.GeocacheImage img, string GeocacheCode) { Framework.Data.GeocacheImage result = null; if (img != null) { Framework.Data.GeocacheImage tmp = DataAccess.GetGeocacheImage(core.GeocacheImages, img.uuid); result = new Framework.Data.GeocacheImage(); if (tmp != null) { result.UpdateFrom(tmp); } result.ID = img.uuid; result.DataFromDate = DateTime.Now; result.GeocacheCode = GeocacheCode; result.Name = img.caption; result.Url = img.url; result.ThumbUrl = img.thumb_url; result.MobileUrl = img.thumb_url; result.Description = ""; } return(result); }
public static Framework.Data.GeocacheImage GeocacheImage(Framework.Interfaces.ICore core, LiveV6.ImageData img, string GeocacheCode) { Framework.Data.GeocacheImage result = null; if (img != null) { Framework.Data.GeocacheImage tmp = DataAccess.GetGeocacheImage(core.GeocacheImages, img.ImageGuid.ToString()); result = new Framework.Data.GeocacheImage(); if (tmp != null) { result.UpdateFrom(tmp); } result.ID = img.ImageGuid.ToString(); result.DataFromDate = DateTime.Now; result.GeocacheCode = GeocacheCode; result.Name = img.Name; result.Url = img.Url; result.ThumbUrl = img.ThumbUrl; result.MobileUrl = img.MobileUrl; result.Description = img.Description; } return(result); }
public static Framework.Data.GeocacheImage GeocacheImage(Framework.Interfaces.ICore core, OKAPIService.GeocacheImage img, string GeocacheCode) { Framework.Data.GeocacheImage result = null; if (img != null) { Framework.Data.GeocacheImage tmp = DataAccess.GetGeocacheImage(core.GeocacheImages, img.uuid); result = new Framework.Data.GeocacheImage(); if (tmp != null) { result.UpdateFrom(tmp); } result.ID = img.uuid; result.DataFromDate = DateTime.Now; result.GeocacheCode = GeocacheCode; result.Name = img.caption; result.Url = img.url; result.ThumbUrl = img.thumb_url; result.MobileUrl = img.thumb_url; result.Description = ""; } return result; }
public static Framework.Data.GeocacheImage GeocacheImage(Framework.Interfaces.ICore core, LiveV6.ImageData img, string GeocacheCode) { Framework.Data.GeocacheImage result = null; if (img != null) { Framework.Data.GeocacheImage tmp = DataAccess.GetGeocacheImage(core.GeocacheImages, img.ImageGuid.ToString()); result = new Framework.Data.GeocacheImage(); if (tmp != null) { result.UpdateFrom(tmp); } result.ID = img.ImageGuid.ToString(); result.DataFromDate = DateTime.Now; result.GeocacheCode = GeocacheCode; result.Name = img.Name; result.Url = img.Url; result.ThumbUrl = img.ThumbUrl; result.MobileUrl = img.MobileUrl; result.Description = img.Description; } return result; }