void CreateFavoritesOverviews(FavoritesPageResJson filePageResJson)
 {
     foreach (FileJson fileJson in filePageResJson.files)
     {
         GameObject   fileOverviewPanel = Instantiate(fileOverviewPanelPrefab, FavoritesScrollViewContent.transform);
         FileOverview fileOverview      = fileOverviewPanel.GetComponent <FileOverview>();
         fileOverview.Init(fileJson);
     }
 }
 void CreateFileOverviews(FilePageResJson filePageResJson)
 {
     foreach (FileJson fileJson in filePageResJson.file_list)
     {
         if (email != null && !email.Equals(WebReq.email) && fileJson.anonymous)
         {
             continue;
         }
         GameObject   fileOverviewPanel = Instantiate(fileOverviewPanelPrefab, filePanel.transform);
         FileOverview fileOverview      = fileOverviewPanel.GetComponent <FileOverview>();
         fileOverview.Init(fileJson);
     }
 }
        public void Setup()
        {
            GameObject o = new GameObject("cavasObj");

            o.AddComponent <Canvas>();
            GameObject fileOverviewPanel = Object.Instantiate((GameObject)Resources.Load("Prefabs/File overview Panel"), o.transform);

            fileOverview = fileOverviewPanel.GetComponent <FileOverview>();
            Debug.Log(fileOverview);

            FileJson fileJson = new FileJson();

            fileJson.anonymous              = false;
            fileJson.email                  = "*****@*****.**";
            fileJson.dateUpdated            = "1561736000534";
            fileJson.fileName               = "";
            fileJson.infoDownloadUrl        = new InfoDownloadUrl();
            fileJson.infoDownloadUrl.status = 200;
            fileJson.infoDownloadUrl.URL    = "";
            fileJson.key = "[email protected]|SpangeBob";

            fileOverview.Init(fileJson);
        }