public IChatChannel GetChannel(string channelId)
 {
     return(_channelFactory.NewInstance(_restService, _baseUri, _token, _userId,
                                        new Channel {
         ChannelId = channelId
     }));
 }
Beispiel #2
0
 public IEnumerable <IChatChannel> GetChannels()
 {
     return(_restService.GetChannels(_baseUri, _token, _teamId)
            .Select(c => _chatChannelFactory
                    .NewInstance(_restService, _baseUri, _token, _teamId, c)));
 }
 public IEnumerable <IChatChannel> GetChannels()
 {
     return(_restService.GetChannelList(_uri, _token, _teamId)
            .Channels.Select(c => _channelFactory.NewInstance(_restService, _uri, _token, _userId, _teamId, c)));
 }