'Provide a view for a list of messages.
:param func: Function used to format the message data
:param request: API request
:param messages: List of messages in dictionary format
:param message_count: Length of the original list of messages
:param coll_name: Name of collection, used to generate the next link
for a pagination query
:returns: message data in dictionary format'

def _list_view(self, func, request, messages, message_count=None, coll_name=_collection_name):

    messages_list = [func(request, message)['message'] for message in messages]
    messages_links = self._get_collection_links(request, messages, coll_name, message_count)
    messages_dict = dict(messages=messages_list)
    if messages_links:
        messages_dict['messages_links'] = messages_links
    return messages_dict
