il2_rest/client.py
def interlocks(self, howManyFromLast=0, page=0, pageSize=10) :
        """
        Get list of interlocks registered for the chain.

        Args:
            howManyFromLast (:obj:`int`): How many interlocking records to return. If ommited or 0 returns all.
            page (:obj:`int`): Page to return.
            pageSize (:obj:`int`): Number of items per page. If 0 returns all.

        Returns:
            :obj:`il2_rest.models.PageOfModel` of :obj:`il2_rest.models.InterlockingRecordModel`: List of interlocks registered in the chain.
        """
        json_data = self.__rest._get(f'/chain/{self.id}/interlockings?howManyFromLast={howManyFromLast}&page={page}&pageSize={pageSize}')
        json_data['itemClass'] = InterlockingRecordModel
        return PageOfModel.from_json(json_data)

        Get list of interlocks registered for the chain.

        Args:
            howManyFromLast (:obj:`int`): How many interlocking records to return. If ommited or 0 returns all.
            page (:obj:`int`): Page to return.
            pageSize (:obj:`int`): Number of items per page. If 0 returns all.

        Returns:
            :obj:`il2_rest.models.PageOfModel` of :obj:`il2_rest.models.InterlockingRecordModel`: List of interlocks registered in the chain.
        
Get list of interlocks registered for the chain.
Get list of interlocks registered for the chain .
def interlocks(self, howManyFromLast=0, page=0, pageSize=10) :
        json_data = self.__rest._get(f'/chain/{self.id}/interlockings?howManyFromLast={howManyFromLast}&page={page}&pageSize={pageSize}')
        json_data['itemClass'] = InterlockingRecordModel
        return PageOfModel.from_json(json_data)
def interlocks ( self , howManyFromLast = 0 , page = 0 , pageSize = 10 ) : json_data = self . __rest . _get ( f'/chain/{self.id}/interlockings?howManyFromLast={howManyFromLast}&page={page}&pageSize={pageSize}' ) json_data [ 'itemClass' ] = InterlockingRecordModel return PageOfModel . from_json ( json_data )
Get list of interlocks registered for the chain.
Get list of interlocks registered for the chain .
"""
        Get list of interlocks registered for the chain.

        Args:
            howManyFromLast (:obj:`int`): How many interlocking records to return. If ommited or 0 returns all.
            page (:obj:`int`): Page to return.
            pageSize (:obj:`int`): Number of items per page. If 0 returns all.

        Returns:
            :obj:`il2_rest.models.PageOfModel` of :obj:`il2_rest.models.InterlockingRecordModel`: List of interlocks registered in the chain.
        """
:obj:`il2_rest.models.PageOfModel` of :obj:`il2_rest.models.InterlockingRecordModel`: List of interlocks registered in the chain.
: obj : ` il2_rest . models . PageOfModel ` of : obj : ` il2_rest . models . InterlockingRecordModel ` : List of interlocks registered in the chain .
self
howManyFromLast
page
pageSize
howManyFromLast (
`int`): How many interlocking records to return. If ommited or 0 returns all.
` int ` ) : How many interlocking records to return . If ommited or 0 returns all .
page (
`int`): Page to return.
` int ` ) : Page to return .
pageSize (
`int`): Number of items per page. If 0 returns all.
` int ` ) : Number of items per page . If 0 returns all .