private void GetPageHighscores()
    {
        var        orderBy = new OrderBy("score", SortDirection.desc);
        TableQuery query   = new TableQuery("", _noPageResults, _skip, "id,username,score", TableSystemProperty.nil, false, orderBy);

        StartCoroutine(_table.Query <Highscore> (query, OnReadNestedResultsCompleted));
    }
Esempio n. 2
0
    public void GetAllNames()
    {
        var        orderBy = new OrderBy("createdAt", SortDirection.asc);
        TableQuery query   = new TableQuery("", 50, 0, "id,firstname,lastname", TableSystemProperty.nil, false, orderBy);

        StartCoroutine(table.Query <Name>(query, GetAllNamesCompleted));
    }
    private void GetUsers()
    {
        _users.Clear();
        var        orderBy = new OrderBy("id", SortDirection.desc);
        TableQuery query   = new TableQuery("", 0, 0, "id,email,username,password", TableSystemProperty.nil, false, orderBy);

        StartCoroutine(_table.Query <UserProfile>(query, OnReadNestedResultsCompleted));
    }
Esempio n. 4
0
    public void Load()
    {
        string     filterPredicate = string.Format("userId eq '{0}'", _client.User.user.userId);
        TableQuery query           = new TableQuery(filterPredicate);

        Debug.Log("Load data for UserId: " + _client.User.user.userId + " query:" + query);

        StartCoroutine(_table.Query <Inventory> (query, OnLoadCompleted));
    }