예제 #1
0
    public void SendImageToMail(string message, byte[] path, onUserLoaded _onUserLoaded)

    {
        if (!isWebServiceReady)

        {
            throw new Exception("WebService is not ready yet.");
        }



        isWebServiceReady = false;

        onUserLoadedEvent = _onUserLoaded;

        StartCoroutine(SendImageToMailCoroutine(message, path));
    }
예제 #2
0
    public void SendRecoveryMail(string email, onUserLoaded _onUserLoaded)

    {
        if (!isWebServiceReady)

        {
            throw new Exception("WebService is not ready yet.");
        }



        isWebServiceReady = false;

        onUserLoadedEvent = _onUserLoaded;

        StartCoroutine(SendRecoveryMailCoroutine(email));
    }
예제 #3
0
    public void UpdateUser(onUserLoaded callback = null)

    {
        if (!isWebServiceReady)

        {
            throw new Exception("WebService is not ready yet.");
        }



        isWebServiceReady = false;

        onUserLoadedEvent = callback;

        StartCoroutine(UpdateCurrentUser());
    }
예제 #4
0
    public void CreateUser(AUTHENTICATION_TYPE authType, string authString, onUserLoaded callback = null)

    {
        if (!isWebServiceReady)

        {
            throw new Exception("WebService is not ready yet.");
        }



        isWebServiceReady = false;

        onUserLoadedEvent = callback;

        StartCoroutine(CreateNewUser(authType, authString, authString));
    }
예제 #5
0
    public void GetUserByFacebook(string facebookId, onUserLoaded callback = null)

    {
        if (!isWebServiceReady)

        {
            throw new Exception("WebService is not ready yet.");
        }



        isWebServiceReady = false;

        onUserLoadedEvent = callback;

        StartCoroutine(LoadUserWithFacebook(facebookId));
    }
예제 #6
0
    public void GetUserByemail(string email, string password, onUserLoaded callback = null)

    {
        if (!isWebServiceReady)

        {
            throw new Exception("WebService is not ready yet.");
        }



        isWebServiceReady = false;

        onUserLoadedEvent = callback;

        StartCoroutine(LoadUser(email, password));
    }
예제 #7
0
    public void UpdateUserPassword(string email, string newPass, onUserLoaded _onUserLoaded)

    {
        if (!isWebServiceReady)

        {
            throw new Exception("WebService is not ready yet.");
        }



        isWebServiceReady = false;

        onUserLoadedEvent = _onUserLoaded;

        StartCoroutine(UpdateUserPasswordCoroutine(email, newPass));
    }