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

Last change on this file since 100 was 100, checked in by ruud, 20 months ago

python installs also wheel to avoid error messages

File size: 736 bytes
Line 
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.