pyrokid_cxr_clientm.extend.sync¶
com.rokid.cxr.client-m:1.0.4 - extend/sync/ in Python
extend.sync namespace contains BaseNetworkResponse, FileData, FileListResponse, HeaderInterceptor, RetrofitClient and RetrofitService
- class pyrokid_cxr_clientm.extend.sync.BaseNetworkResponse(errorCode: int = 200, errorMsg: str = '', isSuccess: bool = False)[source]¶
Bases:
objectcom.rokid.cxr.client.extend.sync.BaseNetworkResponse Java class to Python
- errorCode: int = 200¶
- errorMsg: str = ''¶
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- isSuccess: bool = False¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶
- class pyrokid_cxr_clientm.extend.sync.FileData(absoluteFilePath: str, createDate: int, fileName: str, fileSize: int, modifiedDate: int, webFilePath: str, isDir: bool, childList: list[FileData] | None = None, mimeType: str | None = None)[source]¶
Bases:
objectcom.rokid.cxr.client.extend.sync.FileData Java class to Python
- absoluteFilePath: str¶
- createDate: int¶
- fileName: str¶
- fileSize: int¶
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- isDir: bool¶
- mimeType: str | None = None¶
- modifiedDate: int¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶
- webFilePath: str¶
- class pyrokid_cxr_clientm.extend.sync.FileListResponse(errorCode: int = 200, errorMsg: str = '', isSuccess: bool = False, data: list[FileData] = None)[source]¶
Bases:
BaseNetworkResponsecom.rokid.cxr.client.extend.sync.FileListResponse Java class to Python
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶
- pyrokid_cxr_clientm.extend.sync.HeaderInterceptor(appVersion: str, apiVersion: str) dict[source]¶
com.rokid.cxr.client.extend.sync.BaseNetworkResponse Java class to Python function :param str appVersion: App version. E.g.: 1.0 :param str apiVersion: API version. E.g.: 1.0
- class pyrokid_cxr_clientm.extend.sync.RetrofitClient[source]¶
Bases:
objectcom.rokid.cxr.client.extend.sync.RetrofitClient Java class to Python
- a: RetrofitService = None¶
- static getInstance() RetrofitClient[source]¶
- getService() RetrofitService[source]¶
- class pyrokid_cxr_clientm.extend.sync.RetrofitService(baseUrl: str, headers: dict)[source]¶
Bases:
object- deleteFile(filePath: str)[source]¶
@Multipart @POST(“/server/deleteFile”) Call<ResponseBody> deleteFile(@Part(“filePath”) RequestBody paramRequestBody);
- downloadFile(filePath: str)[source]¶
@Multipart @Streaming @POST(“/server/downloadFile”) Call<ResponseBody> downloadFile(@Part(“filePath”) RequestBody paramRequestBody);
- getFileList(filePath: str)[source]¶
@Multipart @POST(“/server/openFileList”) Call<FileListResponse> getFileList(@Part(“filePath”) RequestBody paramRequestBody);