Reputation: 43
I need to get all objects in a class from Parse.com, but my code does not seem to be working.
So far, I have this:
var query = ParseObject.GetQuery("GameScore").OrderBy("score").Limit(10);
query.FindAsync().ContinueWith(t =>
{
IEnumerable<ParseObject> results = t.Result;
foreach (var obj in results)
{
var score = obj.Get<ParseObject>("score");
Debug.Log("Score: " + score);
}
});
However, this does not return anything. I believe it doesn't even enter the loop.
EDIT: The class does exist, the keys are all there.
Upvotes: 2
Views: 1889
Reputation: 43
Figured it out.
var score = obj.Get<ParseObject>("score");
should be
var score = obj.Get<float>("score");
Upvotes: 2