public void Run(string groupName, RestCreateGroupCallback inCallback) { var data = new CreateGroupData() { name = groupName }; RestManager.Post(this, RestManager.Request.CREATE_GROUP, TinyJSON.Encoder.Encode(data, TinyJSON.EncodeOptions.NoTypeHints), CreateGroupReply); doneCallback = inCallback; }
public static void CreateGroup(string groupName, RestCreateGroupCallback callback) { var restCreateGroup = new RestCreateGroup(); restCreateGroup.Run(groupName, callback); }