mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 20:45:06 +08:00
46 lines
759 B
Python
46 lines
759 B
Python
|
# Python 兼容版本 3.8+
|
||
|
|
||
|
from typing import Optional
|
||
|
|
||
|
|
||
|
class IcaStatus:
|
||
|
@property
|
||
|
def login(self) -> bool:
|
||
|
...
|
||
|
@property
|
||
|
def online(self) -> bool:
|
||
|
...
|
||
|
@property
|
||
|
def self_id(self) -> Optional[bool]:
|
||
|
...
|
||
|
@property
|
||
|
def nick_name(self) -> Optional[str]:
|
||
|
...
|
||
|
@property
|
||
|
def ica_version(self) -> Optional[str]:
|
||
|
...
|
||
|
@property
|
||
|
def os_info(self) -> Optional[str]:
|
||
|
...
|
||
|
@property
|
||
|
def resident_set_size(self) -> Optional[str]:
|
||
|
...
|
||
|
@property
|
||
|
def head_used(self) -> Optional[str]:
|
||
|
...
|
||
|
@property
|
||
|
def load_average(self) -> Optional[str]:
|
||
|
...
|
||
|
|
||
|
|
||
|
class NewMessage:
|
||
|
...
|
||
|
|
||
|
|
||
|
class ReplyMessage:
|
||
|
...
|
||
|
|
||
|
|
||
|
class SendMessage:
|
||
|
...
|