code: async def get_messages(self, name):
          
  
          resp = await self.send_command(OPERATIONS.CMD_QUERY_MESSAGES, {'name': name},
                                         MESSAGES.QueryMessagesResponse, timeout=5.0)
  
          return [states.ServiceMessage.FromDictionary(x) for x in resp]
docs: Get stored messages for a service.
  
          Args:
              name (string): The name of the service to get messages from.
  
          Returns:
              list(ServiceMessage): A list of the messages stored for this service