mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Created connection_model.py
This commit is contained in:
parent
64c3ab248e
commit
b604e6c24d
24
models/connection_model.py
Normal file
24
models/connection_model.py
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
class ConnectionModel:
|
||||||
|
def __init__(self, timeout: float = 16, host: str = "https://google.com"):
|
||||||
|
self._host = host
|
||||||
|
self._timeout = timeout
|
||||||
|
|
||||||
|
@property
|
||||||
|
def host(self):
|
||||||
|
# TODO add verbose output
|
||||||
|
return self._host
|
||||||
|
|
||||||
|
@host.setter
|
||||||
|
def host(self, new_host: str):
|
||||||
|
# TODO add verbose output
|
||||||
|
self._host = new_host
|
||||||
|
|
||||||
|
@property
|
||||||
|
def timeout(self):
|
||||||
|
# TODO add verbose output
|
||||||
|
return self._timeout
|
||||||
|
|
||||||
|
@timeout.setter
|
||||||
|
def timeout(self, new_timeout):
|
||||||
|
# TODO add verbose output
|
||||||
|
self._timeout = new_timeout
|
Loading…
Reference in New Issue
Block a user