public function Channel::__construct in Rocket.Chat 8.2
Channel constructor.
Parameters
int|NULL $typeMask:
string|NULL $ChannelName:
File
- modules/
rocket_chat_api/ src/ RocketChat/ Element/ Channel.php, line 108
Class
Namespace
Drupal\rocket_chat_api\RocketChat\ElementCode
public function __construct($typeMask = null, $ChannelName = NULL) {
if (is_null($typeMask)) {
$typeMask = self::DEFAULT_CHANNEL_TYPE;
}
if (is_null($ChannelName)) {
$ChannelName = "";
}
else {
$rcState = new Drupal8State(Drupal::service('state'));
$apiConfig = new Drupal8Config(Drupal::configFactory(), Drupal::moduleHandler(), Drupal::state(), Drupal::messenger());
$apiClient = new ApiClient($apiConfig);
$channelsState = new Channels($rcState, $apiClient);
$channelsState
->getCache();
}
$this->ChannelType = $typeMask;
$this->ChannelName = $ChannelName;
$this->Logger = Drupal::logger('Rocket Chat API: Channel');
}