mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-13 06:52:18 +03:00
28 lines
682 B
Python
28 lines
682 B
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
|
import json
|
|
|
|
class Task(object):
|
|
"""docstring for Task"""
|
|
def __init__(self,message):
|
|
self.payload = json.loads(message)
|
|
print(self.payload)
|
|
self.request = self.payload['request']
|
|
print(self.request)
|
|
|
|
@property
|
|
def getPluginName(self):
|
|
self.request['pluginName']
|
|
|
|
@property
|
|
def getCommandId(self):
|
|
self.request['commandId']
|
|
|
|
@property
|
|
def params(self):
|
|
self.request['parameterMap']
|
|
|
|
@property
|
|
def pluginVersion(self):
|
|
self.request['pluginVersion']
|