예제 #1
0
 def add_recipient(self, gift_recipient: GiftRecipient) -> None:
     """
     Add a new recipient to this Santa's list
     :param gift_recipient: Gift recipient to add
     :return:
     """
     self._gift_recipients.append(gift_recipient.get_name())
예제 #2
0
 def _is_already_gifting(self, gift_recipient: GiftRecipient) -> bool:
     """
     Check to see if the specified recipient is already being gifted by this Santa.
     :param gift_recipient: Gift recipient to check
     :return: Whether or not this person has already been selected by this Santa
     """
     return gift_recipient.get_name() in self._gift_recipients