Internal persisted state model for this handler.
Definition at line 69 of file phase1_contribution_handler.py.
◆ __init__()
def coordinator.phase1_contribution_handler._Phase1State.__init__ |
( |
|
self, |
|
|
int |
num_valid_contributions |
|
) |
| |
Definition at line 74 of file phase1_contribution_handler.py.
74 def __init__(self, num_valid_contributions: int):
75 self.num_valid_contributions = num_valid_contributions
◆ from_json()
_Phase1State coordinator.phase1_contribution_handler._Phase1State.from_json |
( |
str |
state_json | ) |
|
|
static |
Definition at line 88 of file phase1_contribution_handler.py.
88 def from_json(state_json: str) -> _Phase1State:
89 return _Phase1State._from_json_dict(json.loads(state_json))
◆ new()
_Phase1State coordinator.phase1_contribution_handler._Phase1State.new |
( |
| ) |
|
|
static |
◆ on_valid_contribution()
None coordinator.phase1_contribution_handler._Phase1State.on_valid_contribution |
( |
|
self | ) |
|
Definition at line 81 of file phase1_contribution_handler.py.
81 def on_valid_contribution(self) -> None:
82 self.num_valid_contributions = self.num_valid_contributions + 1
◆ to_json()
str coordinator.phase1_contribution_handler._Phase1State.to_json |
( |
|
self | ) |
|
◆ num_valid_contributions
coordinator.phase1_contribution_handler._Phase1State.num_valid_contributions |
The documentation for this class was generated from the following file: