Forum

Results 1 to 5 of 5
  1. #1
    Join Date
    October 2014
    Posts
    60

    SDK Create Parent channel

    An easy one if you that know how, but I dont.

    I've looked through the docs but still can't work it out.

    I'm using the below to create channels on an SDK server.

    Code:
    Connection.CreateChannel(freq, null,
                        topic: "TestChannels",
                        description: "TestChannels",
                        isPermanent: false,
                        isSemiPermanent: false,
                        password: null);
    Works great but I'd like to create a channel and a subchannel below it.

    Code:
    Connection.CreateChannel(freq, WHAT SHOULD GO HERE?,
                        topic: "TestChannels",
                        description: "TestChannels",
                        isPermanent: false,
                        isSemiPermanent: false,
                        password: null);

    Any help appreciated.

  2. #2
    Join Date
    October 2014
    Posts
    60
    Quote Originally Posted by ATC_ROO View Post
    An easy one if you that know how, but I dont.

    I've looked through the docs but still can't work it out.

    I'm using the below to create channels on an SDK server.

    Code:
    Connection.CreateChannel(freq, null,
                        topic: "TestChannels",
                        description: "TestChannels",
                        isPermanent: false,
                        isSemiPermanent: false,
                        password: null);
    Works great but I'd like to create a channel and a subchannel below it.

    Code:
    Connection.CreateChannel(freq, WHAT SHOULD GO HERE?,
                        topic: "TestChannels",
                        description: "TestChannels",
                        isPermanent: false,
                        isSemiPermanent: false,
                        password: null);

    Any help appreciated.

    I'm still stuck on this.
    Does anybody know how to create a sub channel?

  3. #3
    Join Date
    September 2012
    Posts
    6,079
    I don't do C#, but looking at it, it requires the Channel Object that you want the channel you're creating to be a sub-channel of.
    So something like Connection.AllChannels["Parent Channel Name"] should work.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  4. #4
    Join Date
    May 2016
    Location
    Idar-Oberstein
    Posts
    163
    I would assume it to go like
    Code:
    var t = Connection.CreateChannel(...);
    t.Wait()
    var channel = t.Result();
    var tChild = Connection.CreateCannel(..., channel, ...);
    ...
    ...With appropriate try catch added.

  5. #5
    Join Date
    October 2014
    Posts
    60
    Thank you both for your help.

    Code:
    var t = Connection.CreateChannel(...); t.Wait() 
    var channel = t.Result; 
    var tChild = Connection.CreateCannel(...
    The above did the trick.
    I was trying to create the child and parent at the same time and didn't think of creating one then the other.

    Thanks again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Linking channel group to all subchannels within a parent channel?
    By Diddlyduderino in forum Permission System
    Replies: 3
    Last Post: August 11th, 2015, 12:56 PM
  2. Replies: 1
    Last Post: June 17th, 2015, 09:07 AM
  3. Replies: 1
    Last Post: May 15th, 2013, 11:06 AM
  4. Channel created server callback : can't get parent channel id
    By maitredede in forum General Questions
    Replies: 0
    Last Post: July 14th, 2011, 01:29 PM
  5. Where is 'Whisper to parent channel'?
    By Legolasindar in forum Client Support
    Replies: 3
    Last Post: February 19th, 2010, 11:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •