Beispiel #1
0
 private void PrintAvailableChannelsList()
 {
     Invites.GetAvailableChannels((availableChannels) => {
         var messageBuilder = new StringBuilder("Invite channels availability:\n");
         availableChannels.ForEach(channel => messageBuilder.AppendLine(channel.Id));
         _console.LogD(messageBuilder.ToString());
     }, (error) => {
         _console.LogE("failed to get available invite channels, error: " + error);
     });
 }
Beispiel #2
0
 void PrintAvailableInviteChannelsDetails()
 {
     Invites.GetAvailableChannels((inviteChannels) => {
         _currentInviteChannels = inviteChannels.ToArray();
         var channels           = _currentInviteChannels.ToList().ConvertAll(x => x.ToString()).ToArray();
         var channelsJoined     = string.Join(", ", channels);
         _console.LogD(string.Format("Available invite channels: {0}", channelsJoined));
     }, (error) => {
         _console.LogE("Error while getting invite channels: " + error.Message);
     });
 }