File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ class BoardsInterface:
2121 PYTHON = 1
2222 MICROPYTHON = 2
2323
24+ WINDOWS = 1
25+ LINUX = 2
26+
2427 @staticmethod
2528 def create_credentials (net_type ):
2629 return LiveObjects .Credentials (net_type )
@@ -39,6 +42,9 @@ def get_lang_str(self):
3942 def get_lang_id (self ):
4043 return self ._lang_id
4144
45+ def get_os_id (self ):
46+ pass
47+
4248 def get_security_level (self ):
4349 pass
4450
@@ -120,6 +126,7 @@ def get_security_level(self):
120126class Linux (BoardsInterface ):
121127 def __init__ (self , net_type ):
122128 self ._lang_id = BoardsInterface .PYTHON
129+ self ._os_id = BoardsInterface .LINUX
123130 self ._net_type = BoardsInterface .EXISTING_NETWORK if net_type == BoardsInterface .DEFAULT_CARRIER else net_type
124131 self ._carrier_capability = (BoardsInterface .EXISTING_NETWORK ,)
125132 self ._existing_network_tls_capability = True
@@ -132,6 +139,9 @@ def connect(self):
132139 def get_security_level (self ):
133140 return LiveObjects .SSL if self ._existing_network_tls_capability else LiveObjects .NONE
134141
142+ def get_os_id (self ):
143+ return self ._os_id
144+
135145
136146class BoardsFactory :
137147
You can’t perform that action at this time.
0 commit comments