Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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;
 }