1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter
4 from PLC.Messages import Message, Messages
5 from PLC.Auth import Auth
7 class GetMessages(Method):
9 Return an array of structs containing details about message
10 templates. If message_ids is specified, only the specified
11 messages will be queried.
18 [Message.fields['message_id']],
21 returns = [Message.fields]
24 def call(self, auth, message_ids = None):
25 return Messages(self.api, message_ids)