Exemple #1
0
 public static void Post(REQUESTTYPE type, Hashtable formData, WWWCallback callback = null)
 {
     Post(GetURLByType(type), formData, callback);
 }
Exemple #2
0
 public static void Get(REQUESTTYPE type, WWWCallback callback)
 {
     Get(GetURLByType(type), callback);
 }
Exemple #3
0
    public static string GetURLByType(REQUESTTYPE type)
    {
        //string prefix = "http://www.freehelpapp.com.br/app/php/";
        string prefix = "http://api.freehelpapp.com.br/";

        if (type == REQUESTTYPE.OPENAPP)
        {
            return(prefix + "openapp.php");
        }
        else if (type == REQUESTTYPE.CHECKCONNECTION)
        {
            return(prefix + "checkconnection.php");
        }
        else if (type == REQUESTTYPE.GETCATEGORY)
        {
            return(prefix + "getcategory.php");
        }
        else if (type == REQUESTTYPE.GETCONFIG)
        {
            return(prefix + "getconfig.php");
        }
        else if (type == REQUESTTYPE.GETURL)
        {
            return(prefix + "geturl.php");
        }
        else if (type == REQUESTTYPE.CLICK_SERVICE)
        {
            return(prefix + "clickservice.php");
        }
        else if (type == REQUESTTYPE.CLICK_CATEGORY)
        {
            return(prefix + "clickcategory.php");
        }
        else if (type == REQUESTTYPE.CLICK_SUBCATEGORY)
        {
            return(prefix + "clicksubcategory.php");
        }
        else if (type == REQUESTTYPE.GETSERVICELIST)
        {
            return(prefix + "getservicelist.php");
        }
        else if (type == REQUESTTYPE.GETSERVICEDATA)
        {
            return(prefix + "getservice.php");
        }
        else if (type == REQUESTTYPE.SEARCH)
        {
            return(prefix + "search.php");
        }
        else if (type == REQUESTTYPE.ABOUT)
        {
            return(prefix + "getabout.php");
        }
        else if (type == REQUESTTYPE.LOGIN_BY_MAIL)
        {
            return(prefix + "loginbymail.php");
        }
        else if (type == REQUESTTYPE.PRIVACITY)
        {
            return(prefix + "getprivacity.php");
        }
        else if (type == REQUESTTYPE.ADDRESS)
        {
            return(prefix + "geocode.php");
        }
        else if (type == REQUESTTYPE.COMMENT)
        {
            return(prefix + "comment.php");
        }
        else if (type == REQUESTTYPE.HISTORY)
        {
            return(prefix + "gethistory.php");
        }
        else if (type == REQUESTTYPE.LOGIN_BY_NETWORK)
        {
            return(prefix + "loginbynetwork.php");
        }
        else if (type == REQUESTTYPE.VITRINE)
        {
            return(prefix + "vitrine.php");
        }
        else if (type == REQUESTTYPE.CREATE_ACCOUNT)
        {
            return(prefix + "createaccount.php");
        }
        else if (type == REQUESTTYPE.RENEWPASSWORD)
        {
            return(prefix + "recoverypassword.php");
        }
        else if (type == REQUESTTYPE.UPDATEACCOUNT)
        {
            return(prefix + "updateacc.php");
        }


        return("");
    }