Latest 0.2.8.9
Homepage https://github.com/collegboi/MBaaSKit
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Description

Framework to provide communication to MBaaSKit Server. Provides
functionality to send and retrieve objects from server.

Example

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

Requirements

  • Swift 3

Installation

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

pod "MBaaSKit"

Usage


struct TestObject: TBJSONSerializable {

    var name: String!

    init() {
    }

    init(name:String) {
        self.name = name
    }
    init( jsonObject : TBJSON) {
        self.name = jsonObject.tryConvert("name")
    }
}

var result = [TestObject]()
result.getAllInBackground(ofType:TestObject.self) { (succeeded: Bool, data: [TestObject]) -> () in

    DispatchQueue.main.async {
        if (succeeded) {
            result = data
            print("success")
        } else {
            print("error")
        }
    }
}

let testObject = TestObject(name: "timothy")

testObject.sendInBackground("objectID"){ (succeeded: Bool, data: NSData) -> () in

    DispatchQueue.main.async {
        if (succeeded) {
            print("scucess")
        } else {
            print("error")
        }
    }
}

Author

collegboi, [email protected]

License

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

Latest podspec

{
    "name": "MBaaSKit",
    "version": "0.2.8.9",
    "summary": "MBaaSKit is a framework for connecting to MBaaSKit Sever.",
    "description": "This framework provides tools to handle sending and retrieving objects from the MBaaSKit Server",
    "homepage": "https://github.com/collegboi/MBaaSKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "collegboi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/collegboi/MBaaSKit.git",
        "tag": "0.2.8.9"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MBaaSKit/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This