File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ def __init__(
1919 qa_info : Optional [QaInfo ] = None ,
2020 doc_type : Optional [str ] = None ,
2121 size : Optional [int ] = None ,
22- total_pages : Optional [int ] = None ,):
22+ total_pages : Optional [int ] = None ,
23+ job_id : Optional [str ] = None ,
24+ file_id : Optional [str ] = None ):
2325
2426 self .__request_id = request_id if request_id else RequestState .generate_op_code (prefix = prefix )
2527 self .__op_code = op_code if op_code else self .__request_id
@@ -31,8 +33,38 @@ def __init__(
3133 self .__doc_type = doc_type
3234 self .__size = size
3335 self .__total_pages = total_pages
36+ self .__job_id = job_id
37+ self .__file_id = file_id
3438
3539
40+ def setFileId (self , file_id : str ):
41+ """
42+ Set file id.
43+ """
44+
45+ self .__file_id = file_id
46+
47+ def getFileId (self ) -> Optional [str ]:
48+ """
49+ Get file id.
50+ """
51+
52+ return self .__file_id
53+
54+ def setJobId (self , job_id : str ):
55+ """
56+ Set job id.
57+ """
58+
59+ self .__job_id = job_id
60+
61+ def getJobId (self ) -> Optional [str ]:
62+ """
63+ Get job id.
64+ """
65+
66+ return self .__job_id
67+
3668 def setTotalPages (self , total_pages : int ):
3769 """
3870 Set total pages.
You can’t perform that action at this time.
0 commit comments