Skip to content

Commit

Permalink
RESTMemoryObject parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonCN committed Aug 30, 2024
1 parent f59c7bf commit c315098
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/cst_python/core/entities/rest_memory_object.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
from typing import Optional

from .memory_object import MemoryObject

class RESTMemoryObject(MemoryObject):

def __init__(self):
def __init__(self, port: int,
hostname : Optional[str] = None,
pretty:Optional[bool] = None,
origin:Optional[str] = None,
n_refresh:Optional[float] = None):
super().__init__()

if hostname is None:
hostname = "localhost"
if pretty is None:
pretty = False
if origin is None:
origin = "*"
if n_refresh is None:
n_refresh = 0.0


self._refresh : float = n_refresh
self._last_access : float = 0
self._last_message : str = ""

raise NotImplementedError()

0 comments on commit c315098

Please sign in to comment.