Ticket_user.py 774 B

1234567891011121314151617181920
  1. class Ticket_user(object):
  2. def __init__(self, id, status, title, ticket_type, created_at, updated_at, due_date, priority, created_by, assigned_to):
  3. self.id = id
  4. self.status = status
  5. self.title = title
  6. self.ticket_type = ticket_type
  7. self.created_at = created_at
  8. self.updated_at = updated_at
  9. self.due_date = due_date
  10. self.priority = priority
  11. self.created_by = created_by
  12. self.assigned_to = assigned_to
  13. def __str__(self):
  14. return "{0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}\n".format(
  15. self.id, self.status, self.title, self.ticket_type, self.created_at,
  16. self.updated_at, self.due_date, self.priority,
  17. self.created_by, self.assigned_to
  18. )