16 lines
492 B
Python
16 lines
492 B
Python
import typing
|
|
|
|
class Clipboard:
|
|
"""
|
|
Clipboard model
|
|
"""
|
|
def __init__(self,id:int = 0,timestamp:int = 0 ,device_name:str = "",token:str="",content:str="") -> None:
|
|
self.id: int = id
|
|
self.timestamp: int = timestamp
|
|
self.device_name: str = device_name
|
|
self.token: str = token
|
|
self.content: str = content
|
|
|
|
def __str__(self) -> str:
|
|
return f"{self.id} {self.timestamp} {self.device_name} {self.token} {self.content}"
|
|
|