Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 17b433f

Browse files
oribafimmarquezs
authored andcommitted
Add jd.get_core_revision method
1 parent 68796c1 commit 17b433f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎myjdapi/myjdapi.py‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,24 @@ def standby_os(self):
9292
return resp
9393

9494

95+
class Jd:
96+
"""
97+
Class that represents the jd-functionality of a Device
98+
"""
99+
100+
def __init__(self, device):
101+
self.device = device
102+
self.url = '/jd'
103+
104+
def get_core_revision(self):
105+
"""
106+
107+
:return:
108+
"""
109+
resp = self.device.action(self.url + "/getCoreRevision")
110+
return resp
111+
112+
95113
class Update:
96114
"""
97115
Class that represents the update-functionality of a Device
@@ -715,6 +733,7 @@ def __init__(self, jd, device_dict):
715733
self.toolbar = Toolbar(self)
716734
self.downloadcontroller = DownloadController(self)
717735
self.update = Update(self)
736+
self.jd = Jd(self)
718737
self.system = System(self)
719738
self.__direct_connection_info = None
720739
self.__refresh_direct_connections()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /