Access the messageInteractions

@return \Twilio\Rest\Proxy\V1\Service\Session\Participant\MessageInteractionList
327481
protected function getMessageInteractions() {
        if (!$this->_messageInteractions) {
            $this->_messageInteractions = new MessageInteractionList(
                $this->version,
                $this->solution['serviceSid'],
                $this->solution['sessionSid'],
                $this->solution['sid']
            );
        }

        return $this->_messageInteractions;
    }
128284
public function getBotMessages()
    {
        return Collection::make($this->getDriver()->getMessages())->filter(function (IncomingMessage $message) {
            return $message->isFromBot();
        })->toArray();
    }
1340150
public function indexAction()
    {
        $this->get('profiler')->disable();

        $messageListDTO = $this->get('cocorico.swift_reader.message_manager')
            ->getMessageListDTO();

        return $this->render(
            'CocoricoSwiftReaderBundle:Message:index.html.twig',
            array(
                'messages' => $messageListDTO->messages
            )
        );
    }
1139030
public function getRecipients()
    {

        if (empty($this->recipients)) {
            return [];
        }
        $recipients = ($this->recipients instanceof Collection) ? $this->recipients->toArray() : $this->recipients;


        if (!is_array($recipients)) {
            return $recipients;
        }
        $return = [];

        foreach ($recipients as $recipient) {
            if ($recipient instanceof \Illuminate\Database\Eloquent\Model) {
                if ($this->type == 'email' and ! isset($recipient->email)) {
                    continue;
                }
                if ($this->type == 'email') {
                    array_push($return, $recipient->email);
                }
                if ($this->type == 'sms' and ! isset($recipient->phone)) {
                    continue;
                }
                if ($this->type == 'sms') {
                    array_push($return, $recipient->phone);
                }
            }
        }
        return array_filter(array_unique($return));
    }
838355
public function threadsWithNewMessages()
    {
        return $this->threads()
            ->where(function (Builder $q) {
                $q->whereNull(Models::table('participants') . '.last_read');
                $q->orWhere(Models::table('threads') . '.updated_at', '>', $this->getConnection()->raw($this->getConnection()->getTablePrefix() . Models::table('participants') . '.last_read'));
            })->get();
    }
378187
protected function getUserMessages()
    {
        $messages = [];

        foreach ($this->repository->all() as $field) {
            foreach ($field->getOption('messages') as $rule => $message) {
                $messages[$field->getName().'.'.$rule] = $message;
            }
        }

        return $messages;
    }
652251
protected function loadMessages()
    {
        $messages = Collection::make($this->event->get('messaging'))->filter(function ($msg) {
            return isset($msg['message']) && isset($msg['message']['attachments']) && isset($msg['message']['attachments']);
        })->transform(function ($msg) {
            $message = new IncomingMessage(File::PATTERN, $msg['sender']['id'], $msg['recipient']['id'], $msg);
            $message->setFiles($this->getFiles($msg));

            return $message;
        })->toArray();

        if (count($messages) === 0) {
            $messages = [new IncomingMessage('', '', '')];
        }

        $this->messages = $messages;
    }
1194801
protected function getMessagesFromContainer()
    {
        $container = $this->getContainer();

        $namespaces = array();
        foreach ($container as $namespace => $messages) {
            if (isset($this->messages[$namespace])) {
                $this->messages[$namespace] = array_merge($this->messages[$namespace], $messages);
            } else {
                $this->messages[$namespace] = $messages;
            }
            $namespaces[] = $namespace;
        }

        foreach ($namespaces as $namespace) {
            unset($container->{$namespace});
        }
    }
958467
protected function getMessages()
    {
        $msgs = array();
        // Read something.
        $read = @fread($this->socket, 65535);
        if ($read === false || @feof($this->socket)) {
            throw new ClientException('Error reading');
        }
        $this->currentProcessingMessage .= $read;
        // If we have a complete message, then return it. Save the rest for
        // later.
        while (($marker = strpos($this->currentProcessingMessage, Message::EOM))) {
            $msg = substr($this->currentProcessingMessage, 0, $marker);
            $this->currentProcessingMessage = substr(
                $this->currentProcessingMessage,
                $marker + strlen(Message::EOM)
            );
            $msgs[] = $msg;
        }
        return $msgs;
    }
146939
public function getData()
    {
        $subscription = $this->subscriptionManager
            ->findOneBy(
                ['userId' => $this->tokenStorage->getToken()->getUser()->getId(), 'handler' => 'portlet']
            );

        if (!$subscription) {
            return [];
        }

        $filter = $subscription->getFilter();

        if (!$filter) {
            return [];
        }

        $messages = $this->messageManager->findByCriteria($filter->getCriteria(), ['createdAt' => 'DESC'], 20);

        $priorityList = $this->messageManager->getPriorityNames();
        $typeList = $this->messageManager->getTypeNames();

        $data = [];
        foreach ($messages as $message) {
            $subject = '';

            $i = 0;
            do {
                $subject .= ($i ? '<wbr />' : '').mb_substr($message->getSubject(), $i, $i + 30, 'UTF-8');
                $i += 30;
            } while ($i <= strlen($message->getSubject()));

            $data[] = [
                'id' => $message->getId(),
                'subject' => $subject,
                'time' => $message->getCreatedAt()->format('U'),
                'priority' => $priorityList[$message->getPriority()],
                'type' => $typeList[$message->getType()],
                'channel' => $message->getChannel(),
            ];
        }

        return $data;
    }
839287
protected function getMessages()
    {
        if (! $this->_messenger instanceof \MUtil_Controller_Action_Helper_FlashMessenger) {
            $this->_messenger = new \MUtil_Controller_Action_Helper_FlashMessenger();
        }

        return $this->_messenger->getMessagesOnly();
    }
773411
public function getMessages()
	{
		return array_merge($this->fatals, $this->errors, $this->warnings, $this->notices);
	}
771009
public function getMessages()
    {
        $message = [];
        foreach ($this->errorList as $item) {
            $message[] = $item->getMessage();
        }

        return $message;
    }
73722
public function getMessages()
    {
        if (empty($this->messages)) {
            $message = new IncomingMessage(Image::PATTERN, $this->event->get('from')['id'], $this->event->get('conversation')['id'],
                $this->payload);
            $message->setImages($this->getImagesUrls());
            $this->messages = [$message];
        }

        return $this->messages;
    }
178191
public function getAllMessages()
    {
        $messages = [];
        foreach (array_keys($this->errors) as $key) {
            $messages = array_merge($messages, $this->getMessages($key));
        }
        return $messages;
    }
947385
public function getMessages()
    {
        $message = new IncomingMessage(Audio::PATTERN, $this->event->get('ToUserName'), $this->event->get('FromUserName'),
            $this->event);
        $message->setAudio($this->getAudio());

        return [$message];
    }
770051
public function listMessages()
    {
        $folder = $this->_path.SEPARATOR.$this->_directory.SEPARATOR."messages";
        $messages = array_slice(scandir($folder), 2);
        foreach ($messages as &$msg) {
            $msg = str_replace('.xml', '', $msg);
        }
        return $messages;
    }