public static Space CreateSpace(string spaceName, RestCreateSpaceCallback callback) { var createdSpace = new Space(); var restCreateSpace = new RestCreateSpace(); restCreateSpace.Run(ref createdSpace, spaceName, callback); return(createdSpace); }
public void Run(ref Spaces.Core.Space createdSpace, string spaceName, RestCreateSpaceCallback inCallback) { space = createdSpace; space.name = spaceName; var data = new CreateSpaceData() { name = space.name }; RestManager.Post(this, RestManager.Request.CREATE_SPACE, TinyJSON.Encoder.Encode(data, TinyJSON.EncodeOptions.NoTypeHints), CreateSpaceReply); doneCallback = inCallback; }