44
55from intersect_sdk import (
66 INTERSECT_JSON_VALUE ,
7+ DirectMessageParams ,
78 IntersectClient ,
89 IntersectClientCallback ,
910 IntersectClientConfig ,
10- IntersectClientMessageParams ,
1111 default_intersect_lifecycle_loop ,
1212)
1313
@@ -38,7 +38,7 @@ def __init__(self) -> None:
3838 self .message_stack = [
3939 # wait 5 seconds before stopping the counter. "Count" in response will be approx. 6
4040 (
41- IntersectClientMessageParams (
41+ DirectMessageParams (
4242 destination = 'counting-organization.counting-facility.counting-system.counting-subsystem.counting-service' ,
4343 operation = 'CountingExample.stop_count' ,
4444 payload = None ,
@@ -47,7 +47,7 @@ def __init__(self) -> None:
4747 ),
4848 # start the counter up again - it will not be 0 at this point! "Count" in response will be approx. 7
4949 (
50- IntersectClientMessageParams (
50+ DirectMessageParams (
5151 destination = 'counting-organization.counting-facility.counting-system.counting-subsystem.counting-service' ,
5252 operation = 'CountingExample.start_count' ,
5353 payload = None ,
@@ -56,7 +56,7 @@ def __init__(self) -> None:
5656 ),
5757 # reset the counter, but have it immediately start running again. "Count" in response will be approx. 10
5858 (
59- IntersectClientMessageParams (
59+ DirectMessageParams (
6060 destination = 'counting-organization.counting-facility.counting-system.counting-subsystem.counting-service' ,
6161 operation = 'CountingExample.reset_count' ,
6262 payload = True ,
@@ -65,7 +65,7 @@ def __init__(self) -> None:
6565 ),
6666 # reset the counter, but don't have it run again. "Count" in response will be approx. 6
6767 (
68- IntersectClientMessageParams (
68+ DirectMessageParams (
6969 destination = 'counting-organization.counting-facility.counting-system.counting-subsystem.counting-service' ,
7070 operation = 'CountingExample.reset_count' ,
7171 payload = False ,
@@ -74,7 +74,7 @@ def __init__(self) -> None:
7474 ),
7575 # start the counter back up. "Count" in response will be approx. 1
7676 (
77- IntersectClientMessageParams (
77+ DirectMessageParams (
7878 destination = 'counting-organization.counting-facility.counting-system.counting-subsystem.counting-service' ,
7979 operation = 'CountingExample.start_count' ,
8080 payload = None ,
@@ -83,7 +83,7 @@ def __init__(self) -> None:
8383 ),
8484 # finally, stop the counter one last time. "Count" in response will be approx. 4
8585 (
86- IntersectClientMessageParams (
86+ DirectMessageParams (
8787 destination = 'counting-organization.counting-facility.counting-system.counting-subsystem.counting-service' ,
8888 operation = 'CountingExample.stop_count' ,
8989 payload = None ,
@@ -158,7 +158,7 @@ def client_callback(
158158 # The counter will start after the initial message.
159159 # If the service is already active and counting, this may do nothing.
160160 initial_messages = [
161- IntersectClientMessageParams (
161+ DirectMessageParams (
162162 destination = 'counting-organization.counting-facility.counting-system.counting-subsystem.counting-service' ,
163163 operation = 'CountingExample.start_count' ,
164164 payload = None ,
0 commit comments