Inherits from NSObject
Declared in KiiServerCodeEntry.h

Overview

Class that represents a server side code entry in KiiCloud.

Instance Methods

entryName

Get the entryName of this server code entry

- (nonnull NSString *)entryName

Return Value

name of this server code entry.

Discussion

Get the entryName of this server code entry

Declared In

KiiServerCodeEntry.h

environmentVersion

Get the version of Node.js to run.

- (KiiServerCodeEnvironmentVersion)environmentVersion

Return Value

environmentVersion

Discussion

Get the version of Node.js to run.

Declared In

KiiServerCodeEntry.h

execute:withBlock:

Asynchronously execute this server code entry using block.This is non-blocking method. [kiiCloudEntry execute:argument withBlock :^(KiiServerCodeEntry entry,KiiServerCodeEntryArgument argument, KiiCloudClodeExecResult result, NSError error){ if(error==nil){ NSLog(@“Code is executed successfully”); } }];

- (void)execute:(nullable KiiServerCodeEntryArgument *)argument withBlock:(nullable KiiServerCodeExecBlock)block

Parameters

argument

passed to the entry of script in the cloud.

block

The block to be called upon method completion. See example.

Discussion

Asynchronously execute this server code entry using block.This is non-blocking method. [kiiCloudEntry execute:argument withBlock :^(KiiServerCodeEntry entry,KiiServerCodeEntryArgument argument, KiiCloudClodeExecResult result, NSError error){ if(error==nil){ NSLog(@“Code is executed successfully”); } }];

Declared In

KiiServerCodeEntry.h

executeSynchronous:withError:

Synchronously execute this server code entry. This is blocking method.

- (nullable KiiServerCodeExecResult *)executeSynchronous:(nullable KiiServerCodeEntryArgument *)argument withError:(NSError *_Nullable *_Nullable)error

Parameters

argument

passed to the entry of script in the server.

error

used to return an error by reference (pass NULL if this is not desired). It is recommended to set an actual error object to get the error information.

Return Value

Result of execution includes NSData returned from specified server code entry in KiiCloud.

Discussion

Synchronously execute this server code entry. This is blocking method.

Declared In

KiiServerCodeEntry.h