pyztk/zk/attendance.py

13 lines
356 B
Python
Raw Normal View History

2016-06-12 16:35:02 +07:00
# -*- coding: utf-8 -*-
class Attendance(object):
def __init__(self, user_id, timestamp, status):
self.user_id = user_id
self.timestamp = timestamp
self.status = status
def __str__(self):
2016-06-24 19:00:55 +07:00
return '<Attendance>: {}'.format(self.user_id)
2016-06-12 16:35:02 +07:00
def __repr__(self):
return '<Attendance>: {}'.format(self.user_id)