Code Duplication    Length = 43-43 lines in 2 locations

opcua/ua/uaprotocol_auto.py 2 locations

@@ 7582-7624 (lines=43) @@
7579
7580
7581
class ModifySubscriptionParameters(FrozenClass):
7582
    '''
7583
    :ivar SubscriptionId:
7584
    :vartype SubscriptionId: UInt32
7585
    :ivar RequestedPublishingInterval:
7586
    :vartype RequestedPublishingInterval: Double
7587
    :ivar RequestedLifetimeCount:
7588
    :vartype RequestedLifetimeCount: UInt32
7589
    :ivar RequestedMaxKeepAliveCount:
7590
    :vartype RequestedMaxKeepAliveCount: UInt32
7591
    :ivar MaxNotificationsPerPublish:
7592
    :vartype MaxNotificationsPerPublish: UInt32
7593
    :ivar Priority:
7594
    :vartype Priority: Byte
7595
    '''
7596
7597
    ua_types = [
7598
        ('SubscriptionId', 'UInt32'),
7599
        ('RequestedPublishingInterval', 'Double'),
7600
        ('RequestedLifetimeCount', 'UInt32'),
7601
        ('RequestedMaxKeepAliveCount', 'UInt32'),
7602
        ('MaxNotificationsPerPublish', 'UInt32'),
7603
        ('Priority', 'Byte'),
7604
               ]
7605
7606
    def __init__(self):
7607
        self.SubscriptionId = 0
7608
        self.RequestedPublishingInterval = 0
7609
        self.RequestedLifetimeCount = 0
7610
        self.RequestedMaxKeepAliveCount = 0
7611
        self.MaxNotificationsPerPublish = 0
7612
        self.Priority = 0
7613
        self._freeze = True
7614
7615
    def __str__(self):
7616
        return 'ModifySubscriptionParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \
7617
               'RequestedPublishingInterval:' + str(self.RequestedPublishingInterval) + ', ' + \
7618
               'RequestedLifetimeCount:' + str(self.RequestedLifetimeCount) + ', ' + \
7619
               'RequestedMaxKeepAliveCount:' + str(self.RequestedMaxKeepAliveCount) + ', ' + \
7620
               'MaxNotificationsPerPublish:' + str(self.MaxNotificationsPerPublish) + ', ' + \
7621
               'Priority:' + str(self.Priority) + ')'
7622
7623
    __repr__ = __str__
7624
7625
7626
class ModifySubscriptionRequest(FrozenClass):
7627
    '''
@@ 7442-7484 (lines=43) @@
7439
7440
7441
class CreateSubscriptionParameters(FrozenClass):
7442
    '''
7443
    :ivar RequestedPublishingInterval:
7444
    :vartype RequestedPublishingInterval: Double
7445
    :ivar RequestedLifetimeCount:
7446
    :vartype RequestedLifetimeCount: UInt32
7447
    :ivar RequestedMaxKeepAliveCount:
7448
    :vartype RequestedMaxKeepAliveCount: UInt32
7449
    :ivar MaxNotificationsPerPublish:
7450
    :vartype MaxNotificationsPerPublish: UInt32
7451
    :ivar PublishingEnabled:
7452
    :vartype PublishingEnabled: Boolean
7453
    :ivar Priority:
7454
    :vartype Priority: Byte
7455
    '''
7456
7457
    ua_types = [
7458
        ('RequestedPublishingInterval', 'Double'),
7459
        ('RequestedLifetimeCount', 'UInt32'),
7460
        ('RequestedMaxKeepAliveCount', 'UInt32'),
7461
        ('MaxNotificationsPerPublish', 'UInt32'),
7462
        ('PublishingEnabled', 'Boolean'),
7463
        ('Priority', 'Byte'),
7464
               ]
7465
7466
    def __init__(self):
7467
        self.RequestedPublishingInterval = 0
7468
        self.RequestedLifetimeCount = 0
7469
        self.RequestedMaxKeepAliveCount = 0
7470
        self.MaxNotificationsPerPublish = 0
7471
        self.PublishingEnabled = True
7472
        self.Priority = 0
7473
        self._freeze = True
7474
7475
    def __str__(self):
7476
        return 'CreateSubscriptionParameters(' + 'RequestedPublishingInterval:' + str(self.RequestedPublishingInterval) + ', ' + \
7477
               'RequestedLifetimeCount:' + str(self.RequestedLifetimeCount) + ', ' + \
7478
               'RequestedMaxKeepAliveCount:' + str(self.RequestedMaxKeepAliveCount) + ', ' + \
7479
               'MaxNotificationsPerPublish:' + str(self.MaxNotificationsPerPublish) + ', ' + \
7480
               'PublishingEnabled:' + str(self.PublishingEnabled) + ', ' + \
7481
               'Priority:' + str(self.Priority) + ')'
7482
7483
    __repr__ = __str__
7484
7485
7486
class CreateSubscriptionRequest(FrozenClass):
7487
    '''