コード例 #1
0
    def __init__(self, date, user_id):
        """
        Construct Checkpoint object

        Args:
            date (:obj: `date`): date of checkpoint
        """

        super().__init__(date)
        self.user_id = user_id

        Event.add_event(self)
コード例 #2
0
    def __init__(self, date, goal, preffered_mentor, user_id):
        """
        Construct PrivateMentoring object

        Args:
            date (:obj: `date`): date of checkpoint
            goal (string): gaol of private mentoring
            preffered_mentor (string): preffered mentor to private mentoring sesion
        """

        super().__init__(date)
        self.user_id = user_id

        self.preffered_mentor = None
        self.goal = None

        self.set_goal(goal)
        self.set_preffered_mentor(preffered_mentor)

        Event.add_event(self)