mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-13 16:46:58 +00:00
22 lines
540 B
Python
22 lines
540 B
Python
"""
|
|
Log Class
|
|
"""
|
|
class Log:
|
|
def __init__(self, LogID: str, JobID: str, LogDate: str, Status: str, Message: str):
|
|
self.LogID = LogID
|
|
self.JobID = JobID
|
|
self.LogDate = LogDate
|
|
self.Status = Status
|
|
self.Message = Message
|
|
|
|
def toJson(self):
|
|
return {
|
|
"LogID": self.LogID,
|
|
"JobID": self.JobID,
|
|
"LogDate": self.LogDate,
|
|
"Status": self.Status,
|
|
"Message": self.Message
|
|
}
|
|
|
|
def __dict__(self):
|
|
return self.toJson() |