public IEnumerable <movie> GetMovieLocalCopy()
        {
            bool exists = File.Exists(PathToFile("json.json"));

            if (!exists)// does not exists
            {
                List <backend.movie> mov = new List <backend.movie>();
                mov.Add(new backend.movie()
                {
                    Movie = "hello", Length = "10min", Format = "DVD"
                });
                return(mov);
            }
            else
            {
                return(DecodeJson.DecodeJsonString(ReadFromFile()));
            }
        }
        public async Task <IEnumerable <movie> > GetMoviesServer(Uri uri)
        {
            try
            {
                urimain = uri;
                Task <string> download = Downloadjson();
                System.Threading.Thread.Sleep(3000);
                Console.WriteLine("before testing: " + uri);

                string json = await download;
                writetofile(json);                 // Write to file on Phone.
                Console.WriteLine("after testing : " + json);
                return(DecodeJson.DecodeJsonString(json));
            }
            catch (Exception x)
            {
                Console.WriteLine("f**k\n");
                return(null);
            }
        }