File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ def __init__(
2121 size : Optional [int ] = None ,
2222 total_pages : Optional [int ] = None ,
2323 job_id : Optional [str ] = None ,
24- file_id : Optional [str ] = None ):
24+ file_id : Optional [str ] = None ,
25+ attempts : Optional [int ] = 0
26+ ):
2527
2628 self .__request_id = request_id if request_id else RequestState .generate_op_code (prefix = prefix )
2729 self .__op_code = op_code if op_code else self .__request_id
@@ -35,7 +37,21 @@ def __init__(
3537 self .__total_pages = total_pages
3638 self .__job_id = job_id
3739 self .__file_id = file_id
40+ self .__attempts = attempts
3841
42+ def setAttempts (self , attempts : int ):
43+ """
44+ Set number of attempts.
45+ """
46+
47+ self .__attempts = attempts
48+
49+ def getAttempts (self ) -> int :
50+ """
51+ Get number of attempts.
52+ """
53+
54+ return self .__attempts
3955
4056 def setFileId (self , file_id : str ):
4157 """
You can’t perform that action at this time.
0 commit comments