(self, target=None)
Return message data

        Returns the data corresponding to the highest data container level
        available, in order of complexity (by convention, fec_encoded >
        encrypted > encapsulated > raw original format). If the target data
        container is specified, return the corresponding data directly.

        Args:
            target : Target data container (original, encapsulated, encrypted,
                     or fec_encoded).
Return message data
Return message data
def get_data(self, target=None):
        """Return message data

        Returns the data corresponding to the highest data container level
        available, in order of complexity (by convention, fec_encoded >
        encrypted > encapsulated > raw original format). If the target data
        container is specified, return the corresponding data directly.

        Args:
            target : Target data container (original, encapsulated, encrypted,
                     or fec_encoded).

        """
        if target is not None:
            assert (target in data_formats), "Unknown target container"
            return self.data[target]

        # Take the highest-level container
        if self.data['fec_encoded'] is not None:
            return self.data['fec_encoded']
        elif self.data['encrypted'] is not None:
            return self.data['encrypted']
        elif self.data['encapsulated'] is not None:
            return self.data['encapsulated']
        else:
            return self.data['original']
def get_data ( self , target = None ) : if target is not None : assert ( target in data_formats ) , "Unknown target container" return self . data [ target ] # Take the highest-level container if self . data [ 'fec_encoded' ] is not None : return self . data [ 'fec_encoded' ] elif self . data [ 'encrypted' ] is not None : return self . data [ 'encrypted' ] elif self . data [ 'encapsulated' ] is not None : return self . data [ 'encapsulated' ] else : return self . data [ 'original' ]