py-sympa-soap/sympasoap/subscribers.py

22 lines
583 B
Python

class MLUser:
editor: bool
email: str
owner: bool
mailing_list: str
name: str
subscriber: bool
def __init__(self, editor=False, email="", owner=False, mailing_list="", name="", subscriber=False):
self.editor = editor
self.email = email
self.owner = owner
self.mailing_list = mailing_list
self.name = name
self.subscriber = subscriber
def __str__(self):
return f"ML subscription for email {self.email} in the list {self.mailing_list}"
def __repr__(self):
return str(self.__dict__)