Module turbobit.responses.RemoteUploadResponse
Expand source code
from typing import Optional
from turbobit.responses import Response
class RemoteUploadFileMessage:
"""
Remote Upload File object for response
"""
msg: str
url: str
url_download_id: str
result: bool
class RemoteUploadResponse(Response):
"""
Response for remote file upload
**Example response**:
```json
{
"message": [
{
"msg": "File has been added to the upload queue.",
"url": "http://domain.com/file_1.zip",
"url_download_id": "458AB57FCA8A26B51CEE3B428527832A",
"success": true
}
],
"result": true
}
```
"""
message: list[Optional[RemoteUploadFileMessage]]
result: bool
Classes
class RemoteUploadFileMessage
-
Remote Upload File object for response
Expand source code
class RemoteUploadFileMessage: """ Remote Upload File object for response """ msg: str url: str url_download_id: str result: bool
Class variables
var msg : str
var result : bool
var url : str
var url_download_id : str
class RemoteUploadResponse
-
Response for remote file upload
Example response:
{ "message": [ { "msg": "File has been added to the upload queue.", "url": "http://domain.com/file_1.zip", "url_download_id": "458AB57FCA8A26B51CEE3B428527832A", "success": true } ], "result": true }
Expand source code
class RemoteUploadResponse(Response): """ Response for remote file upload **Example response**: ```json { "message": [ { "msg": "File has been added to the upload queue.", "url": "http://domain.com/file_1.zip", "url_download_id": "458AB57FCA8A26B51CEE3B428527832A", "success": true } ], "result": true } ``` """ message: list[Optional[RemoteUploadFileMessage]] result: bool
Ancestors
Class variables
var message : list[typing.Optional[RemoteUploadFileMessage]]
var result : bool
Inherited members