Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not receive real-time data return information #84

Open
bughp opened this issue Apr 16, 2018 · 1 comment
Open

Not receive real-time data return information #84

bughp opened this issue Apr 16, 2018 · 1 comment

Comments

@bughp
Copy link

bughp commented Apr 16, 2018

    ParseObject store = ParseObject.createWithoutData("xxxxx", "njEi4qBLVG");
ParseObject disheType = ParseObject.createWithoutData("xxxxx", y7yN4peg6u);
    ParseQuery<ParseObject> clsRecipeQuery = new ParseQuery<ParseObject>("xxxxx");
    ParseQuery<ParseObject> classifyQuery = new ParseQuery<ParseObject>("xxxxx");
    ParseQuery<ParseObject> myMenuQuery = new ParseQuery<ParseObject>("xxxxx");
    myMenuQuery.whereEqualTo("xxxxx", disheType);  
    myMenuQuery.whereEqualTo("xxxxx", store);               
    myMenuQuery.whereEqualTo("xxxxx", true);                   
    classifyQuery.whereEqualTo("xxxxx", store);                
    classifyQuery.whereEqualTo("xxxxx", false);               
    classifyQuery.whereMatchesQuery("xxxxx", myMenuQuery);        
    classifyQuery.addAscendingOrder("xxxxx");
    clsRecipeQuery.whereMatchesQuery("xxxxx", classifyQuery);
    clsRecipeQuery.whereEqualTo("xxxxx", true);
    clsRecipeQuery.include("xxxxx");                    
    clsRecipeQuery.include("xxxxx");                    
    clsRecipeQuery.addAscendingOrder("xxxxx");  
    clsRecipeQuery.addAscendingOrder("xxxxx");                    
    clsRecipeQuery.findInBackground(new FindCallback<ParseObject>() {
        @Override
        public void done(List<ParseObject> list, ParseException e) {

        }
    });
    ParseLiveQueryClient parseLiveQueryClient = ParseLiveQueryClient.Factory.getClient(); 
    SubscriptionHandling<ParseObject> subscriptionHandling = parseLiveQueryClient.subscribe(clsRecipeQuery);
    subscriptionHandling.handleEvents(new SubscriptionHandling.HandleEventsCallback<ParseObject>() {
        @Override
        public void onEvents(ParseQuery<ParseObject> query, SubscriptionHandling.Event event, ParseObject object) {
            Log.d(TAG,"SubscriptionHandling =========object================ 7777777777777 ");
        }
    });
@rommansabbir
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants