public int GetLocalFilesContainsPopup(DBpopupfileTO item)
        {
            List <DBpopupfileTO> profile = new List <DBpopupfileTO>();

            try
            {
                SQLiteConnection connection = GetConnection();
                var table = connection.Table <DBpopupfileTO>();
                //var bas = table.First();

                foreach (var pp in table)
                {
                    //profile.Add(pp);
                    if (pp.uuid == item.uuid)
                    {
                        profile.Add(pp);
                    }
                }

                //return profile.Contains(item);
            }
            catch       //(Exception ex)
            {
                //                Console.WriteLine (ex.Message);
                // not sure what to do about logging on the phone
            }


            return(profile.Count);
        }
        public void AddLocalFilesPopup(DBpopupfileTO item)
        {
            SQLiteConnection connection = GetConnection();

            connection.CreateTable <DBpopupfileTO>();
            connection.Insert(item);
        }
 public DBDefaultFileTO(DBpopupfileTO popUpFile)
 {
     this.uuid        = popUpFile.uuid;
     this.name        = popUpFile.name;
     this.fileType    = popUpFile.fileType;
     this.md5         = popUpFile.md5;
     this.downloadUrl = popUpFile.downloadUrl;
     this.mimeType    = popUpFile.mimeType;
     this.folderUuid  = popUpFile.folderUuid;
 }