Parse LiveQuery

Very simple and modern implementation, it lacks tests and extra functionality at this moment but i'm working on it.

License

License

GroupId

GroupId

com.github.tgio
ArtifactId

ArtifactId

parse-livequery
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

aar
Description

Description

Parse LiveQuery
Very simple and modern implementation, it lacks tests and extra functionality at this moment but i'm working on it.
Project URL

Project URL

https://github.com/TGIO/ParseLiveQuery
Source Code Management

Source Code Management

https://github.com/TGIO/ParseLiveQuery

Download parse-livequery

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.tgio/parse-livequery/ -->
<dependency>
    <groupId>com.github.tgio</groupId>
    <artifactId>parse-livequery</artifactId>
    <version>1.0.3</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.tgio/parse-livequery/
implementation 'com.github.tgio:parse-livequery:1.0.3'
// https://jarcasting.com/artifacts/com.github.tgio/parse-livequery/
implementation ("com.github.tgio:parse-livequery:1.0.3")
'com.github.tgio:parse-livequery:aar:1.0.3'
<dependency org="com.github.tgio" name="parse-livequery" rev="1.0.3">
  <artifact name="parse-livequery" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.tgio', module='parse-livequery', version='1.0.3')
)
libraryDependencies += "com.github.tgio" % "parse-livequery" % "1.0.3"
[com.github.tgio/parse-livequery "1.0.3"]

Dependencies

compile (5)

Group / Artifact Type Version
com.artemzin.rxjava : proguard-rules jar 1.1.6.0
io.reactivex : rxandroid jar 1.2.1
com.squareup.okhttp3 : okhttp-ws jar 3.4.0
io.reactivex : rxjava jar 1.1.6
com.android.support » support-annotations jar 24.2.0

Project Modules

There are no modules declared in this project.

Deprecated, please use https://github.com/parse-community/ParseLiveQuery-Android

Jit Pack

Parse LiveQuery Implementation for Android

Simple ParseLiveQuery with subscribe, unsubscribe and listen events. Based on ParseLiveQuery

Import guide

dependencies {
    compile 'com.github.tgio:parse-livequery:1.0.3'
}

Server-Setup

  1. Make sure u have node and npm installed.
  2. cd Server && npm install
  3. node server.js

Usage

//Do initialization, for example in App.java
LiveQueryClient.init(WS_URL, MY_APP_ID, true);

//Connect
LiveQueryClient.connect();

//Subscribe for parse object "Message" where "body" equals "asd" and include "body" field in response

//  Subscription
final Subscription subscription = new BaseQuery.Builder("Message")
      .where("body", "asd")
      .addField("body")
      .build()
      .subscribe();

//  Listen
subscription.on(LiveQueryEvent.CREATE, new OnListener() {
  @Override
  public void on(final JSONObject object) {
      Log.e("CREATED", object.toString());
  }
});

//  Unsubscribe
//subscription.unsubscribe();

Contributors

[Khirr] (https://github.com/khirr)

Versions

Version
1.0.3