README.md:
The Parse Cloud Code job queue. Define, queue, and process work on a constant basis.
First, you'll want to define some jobs:
| // cclocal | |
| Parse = require('parse'); | |
| Parse.Cloud = {}; | |
| Parse.Cloud.Functions = {}; | |
| Parse.Cloud.define = function(funcName,func) { | |
| Parse.Cloud.Functions[funcName] = func; |
| // The before save handler will pass information to the after save handler to disable the | |
| // after save handler from creating a loop. | |
| // It also prevents client side code from triggering the silent change, by using a different flag | |
| // that the client should never see. | |
| // It should only be visible in the data browser, won't be sent to a client in an undefined state. | |
| Parse.Cloud.beforeSave('TestObject', function(request, response) { | |
| handleComingFromTask(request.object); | |
| response.success(); | |
| }); |
| // Add these two method declarations to the Parse.framework/Headers/PFObject.h header file in your Xcode project: | |
| - (void)serializeToDataFile:(NSString *)filename; | |
| + (id)objectFromDataFile:(NSString *)filename; | |
| // and you can start saving and loading PFObject on disk | |
| PFObject *object = [PFObject objectWithClassName:@"Todo"]; | |
| [object setObject:@"Sample Text" forKey:@"text"]; |
| var moment = require('moment'); | |
| TestObjectMeta = Parse.Object.extend("TestObject_meta"); | |
| Parse.Cloud.beforeSave("TestObject", function(request, response) { | |
| var obj = request.object; | |
| if (obj.isNew()) { | |
| var at = moment(); | |
| var metadata = new TestObjectMeta(); | |
| metadata.set('year', at.year()); |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using MonoTouch.Foundation; | |
| using MonoTouch.UIKit; | |
| using Xamarin.Forms; | |
| using Parse; |
| using UnityEngine; | |
| using System.Collections; | |
| using Parse; | |
| public class PushBehaviorScript : MonoBehaviour { | |
| bool tokenSent = false; | |
| public ParseObject currentInstallation = null; | |
| void Start () { |
| - Open Xcode | |
| - CMD+ALT+SHIFT+K | |
| - Answer "Yes" | |
| - Build again | |
| Cleaning derived data folder is a common scenario. | |
| Oh - one more thing... | |
| Do not override Parse.framework folder, but delete-add it. |