Пример #1
0
        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;
        }
Пример #2
0
            public static void CreateGroup(string groupName, RestCreateGroupCallback callback)
            {
                var restCreateGroup = new RestCreateGroup();

                restCreateGroup.Run(groupName, callback);
            }