source: geniuswebcore/geniusweb/actions/Accept.py@ 62

Last change on this file since 62 was 59, checked in by Wouter Pasman, 3 years ago

#44 manual commit of first public release, because this will cause the dist directory to move

File size: 736 bytes
RevLine 
[59]1from typing import Any, Dict
2from geniusweb.actions.ActionWithBid import ActionWithBid
3from geniusweb.actions.PartyId import PartyId
4from geniusweb.issuevalue.Bid import Bid
5
6class Accept (ActionWithBid):
7 '''
8 An accept done by some party indicates that that party agrees with the bid.
9 Usually the contained {@link Bid} must be a bid that was previously
10 {@link Offer}ed by some party.
11 '''
12 def __init__(self,actor:PartyId ,bid:Bid):
13 '''
14 @param id the accepting party.
15 @param bid the bid that was offered before (usually by some other Party )
16 FIXME stronger typing using Bid class
17 '''
18 super().__init__(actor, bid);
19
20 def __repr__(self)->str:
21 return("Accept[" + str(self.getActor()) + "," + str(self.getBid()) + "]")
22
23
Note: See TracBrowser for help on using the repository browser.