GithubHelp home page GithubHelp logo

jamesgorman2 / parse-rxswift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from konshin/parse-rxswift

0.0 1.0 0.0 3.81 MB

A collection of wrapper classes that allow you to use RxSwift Observers in place of Parse`s callbacks

License: MIT License

Swift 93.37% Ruby 6.63%

parse-rxswift's Introduction

Parse_RxSwift

Version License Platform

A collection of wrapper classes that allow you to use RxSwift Observers in place of Parse's callbacks.

It is a fork from bluelinelabs/Parse-RxSwift !

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Parse_RxSwift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Parse_RxSwift'

Usage

Just call .rx after initialising a Parse object and you'll get the RxSwift-ified version whose methods will return Observable types, eg

// a stream of the results
let o: Observable<PFObject> = PFQuery(className: "GameScore")
  .whereKey("playerName", equalTo: "Dan Stemkoski")
  .rx
  .findObjects()

// complete if successful, otherwise and error
let c: Completable = somePFObject.rx.save()

// the object or an error
let s: Single<PFObject> = PFObject(className: "GameScore", objectId: "xWMyZ4YEGZ").rx.fetch()

Author

Konshin, [email protected]

License

Parse_RxSwift is available under the MIT license. See the LICENSE file for more info.

parse-rxswift's People

Contributors

andrewsb avatar erickuck avatar jamesgorman2 avatar konshin avatar leoneparise avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.