Esempio n. 1
0
    private IEnumerator initiateSearch()
    {
        dbInteractionScript.getFromDB("http://psiwebservice/getTotalUserCount.php");
        while (dbInteractionScript.IsRequesting)
        {
            yield return(null);
        }
        userCount = Convert.ToInt64(dbInteractionScript.CleanData[0]);

        for (int i = 0; i < userCount; i++)
        {
            dbInteractionScript.getSingleFromDB("http://psiwebservice/FetchID.php", new string[2] {
                "id", i.ToString()
            });
            while (dbInteractionScript.IsRequesting)
            {
                yield return(null);
            }
            long dossierID = Convert.ToInt64(dbInteractionScript.CleanData[0]);

            dbInteractionScript.getSingleFromDB("http://psiwebservice/fetchIsPremium.php", new string[2] {
                "id", i.ToString()
            });
            while (dbInteractionScript.IsRequesting)
            {
                yield return(null);
            }
            bool isPremium = Convert.ToBoolean(dbInteractionScript.CleanData[0]);

            dbInteractionScript.getSingleFromDB("http://psiwebservice/getDeetsOfID.php", new string[2] {
                "id", i.ToString()
            });
            while (dbInteractionScript.IsRequesting)
            {
                yield return(null);
            }
            string[] deets = dbInteractionScript.CleanData;

            dbInteractionScript.getSingleFromDB("http://psiwebservice/getHobbiesOfID.php", new string[2] {
                "id", i.ToString()
            });
            while (dbInteractionScript.IsRequesting)
            {
                yield return(null);
            }
            string[] hobbies = dbInteractionScript.CleanData;

            buildCurrentScanDossier(dossierID, isPremium, deets, hobbies);
            searchDossier();
        }

        //TODO: Interact with DB to fetch user list
        //TODO: Find a way to deep search the 4 default categories
        originCount = originPersonality.getPreferences().Count;
        for (int i = 0; i < 4; i++)
        {
        }
    }
Esempio n. 2
0
 private IEnumerator fetchNotifications()
 {
     dbInteractionScript.getSingleFromDB("http://psiwebservice/fetchNotifications.php", new string[2] {
         "receiver", dossierScript.Username
     });
     while (dbInteractionScript.IsRequesting)
     {
         yield return(null);
     }
     prepareNotificationsForAssembly(dbInteractionScript.CleanData);
 }
Esempio n. 3
0
 private void fetchIDFromServer()
 {
     dbInteractionScript.getSingleFromDB("http://psiwebservice/fetchID.php", new string[2] {
         "id", Username
     });
 }