コード例 #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);
        }
コード例 #2
0
ファイル: Convert.cs プロジェクト: pheijmans-zz/GAPP
 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);
 }
コード例 #3
0
ファイル: Convert.cs プロジェクト: pheijmans-zz/GAPP
 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);
 }
コード例 #4
0
ファイル: Convert.cs プロジェクト: gahadzikwa/GAPP
 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;
 }
コード例 #5
0
ファイル: Convert.cs プロジェクト: gahadzikwa/GAPP
 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;
 }