跳转到正文

协议模型:S · 14 ​

全部模型 · 协议包用法

选择模型查看构造参数和字段,代码块保留完整模型名称。... 表示可省略的字段,省略时使用该类型的零值。

struct_SoundName_string_…Legacy_bool_ ​

继承 Struct。

python
class struct_SoundName_string__StopAll_bool__StopMusicLegacy_bool_(_Struct):
    SoundName: str | StringBytes
    StopAll: bool
    StopMusicLegacy: bool
    def __init__(self, /, *,
        SoundName: str | StringBytes = ...,
        StopAll: bool = ...,
        StopMusicLegacy: bool = ...,
    ) -> None: ...

struct_Speed_uint32__FileName_string_ ​

继承 Struct。

python
class struct_Speed_uint32__FileName_string_(_Struct):
    Speed: int
    FileName: str | StringBytes
    def __init__(self, /, *,
        Speed: int = ...,
        FileName: str | StringBytes = ...,
    ) -> None: ...

struct_Stack___string_ ​

继承 Struct。

python
class struct_Stack___string_(_Struct):
    Stack: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
    def __init__(self, /, *,
        Stack: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
    ) -> None: ...

struct_Status_int32_ ​

继承 Struct。

python
class struct_Status_int32_(_Struct):
    Status: int
    def __init__(self, /, *,
        Status: int = ...,
    ) -> None: ...

struct_SteepBlock_int32_…nabled_bool_ ​

继承 Struct。

python
class struct_SteepBlock_int32__NorthSlopes_bool__SouthSlopes_bool__WestSlopes_bool__EastSlopes_bool__TopSlideEnabled_bool_(_Struct):
    SteepBlock: int
    NorthSlopes: bool
    SouthSlopes: bool
    WestSlopes: bool
    EastSlopes: bool
    TopSlideEnabled: bool
    def __init__(self, /, *,
        SteepBlock: int = ...,
        NorthSlopes: bool = ...,
        SouthSlopes: bool = ...,
        WestSlopes: bool = ...,
        EastSlopes: bool = ...,
        TopSlideEnabled: bool = ...,
    ) -> None: ...

struct_StructureData___byte_ ​

继承 Struct。

python
class struct_StructureData___byte_(_Struct):
    StructureData: bytes | None
    def __init__(self, /, *,
        StructureData: bytes | None = ...,
    ) -> None: ...

struct_StructureName_str…_string_any_ ​

继承 Struct。

python
class struct_StructureName_string__Success_bool__ResponseType_byte__StructureTemplate_map_string_any_(_Struct):
    StructureName: str | StringBytes
    Success: bool
    ResponseType: int
    StructureTemplate: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
    def __init__(self, /, *,
        StructureName: str | StringBytes = ...,
        Success: bool = ...,
        ResponseType: int = ...,
        StructureTemplate: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
    ) -> None: ...

struct_Success_bool__Mes…rs___string_ ​

继承 Struct。

python
class struct_Success_bool__Message_string__Parameters___string_(_Struct):
    Success: bool
    Message: str | StringBytes
    Parameters: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
    def __init__(self, /, *,
        Success: bool = ...,
        Message: str | StringBytes = ...,
        Parameters: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
    ) -> None: ...

struct_SuccessCount_int3…ages_string_ ​

继承 Struct。

python
class struct_SuccessCount_int32__MessageCount_int32__CommandName_string__OutputMessages_string_(_Struct):
    SuccessCount: int
    MessageCount: int
    CommandName: str | StringBytes
    OutputMessages: str | StringBytes
    def __init__(self, /, *,
        SuccessCount: int = ...,
        MessageCount: int = ...,
        CommandName: str | StringBytes = ...,
        OutputMessages: str | StringBytes = ...,
    ) -> None: ...

struct_Tag_string_ ​

继承 Struct。

python
class struct_Tag_string_(_Struct):
    Tag: str | StringBytes
    def __init__(self, /, *,
        Tag: str | StringBytes = ...,
    ) -> None: ...

struct_Tag_uint64__Data_…interface___ ​

继承 Struct。

python
class struct_Tag_uint64__Data___byte__Value_interface___(_Struct):
    Tag: int
    Data: bytes | None
    Value: DynamicValue | UnionValue | _Struct | None
    def __init__(self, /, *,
        Tag: int = ...,
        Data: bytes | None = ...,
        Value: DynamicValue | UnionValue | _Struct | None = ...,
    ) -> None: ...

struct_Temperature_float…Max_float32_ ​

继承 Struct。

python
class struct_Temperature_float32__Downfall_float32__SnowAccumulationMin_float32__SnowAccumulationMax_float32_(_Struct):
    Temperature: float | FloatBits
    Downfall: float | FloatBits
    SnowAccumulationMin: float | FloatBits
    SnowAccumulationMax: float | FloatBits
    def __init__(self, /, *,
        Temperature: float | FloatBits = ...,
        Downfall: float | FloatBits = ...,
        SnowAccumulationMin: float | FloatBits = ...,
        SnowAccumulationMax: float | FloatBits = ...,
    ) -> None: ...

struct_Temperature_float…ght_float32_ ​

继承 Struct。

python
class struct_Temperature_float32__Humidity_float32__Altitude_float32__Weirdness_float32__Weight_float32_(_Struct):
    Temperature: float | FloatBits
    Humidity: float | FloatBits
    Altitude: float | FloatBits
    Weirdness: float | FloatBits
    Weight: float | FloatBits
    def __init__(self, /, *,
        Temperature: float | FloatBits = ...,
        Humidity: float | FloatBits = ...,
        Altitude: float | FloatBits = ...,
        Weirdness: float | FloatBits = ...,
        Weight: float | FloatBits = ...,
    ) -> None: ...

struct_Temperature_int32__Weight_uint32_ ​

继承 Struct。

python
class struct_Temperature_int32__Weight_uint32_(_Struct):
    Temperature: int
    Weight: int
    def __init__(self, /, *,
        Temperature: int = ...,
        Weight: int = ...,
    ) -> None: ...

struct_Text_string_ ​

继承 Struct。

python
class struct_Text_string_(_Struct):
    Text: str | StringBytes
    def __init__(self, /, *,
        Text: str | StringBytes = ...,
    ) -> None: ...

struct_Text_string__FromServer_bool_ ​

继承 Struct。

python
class struct_Text_string__FromServer_bool_(_Struct):
    Text: str | StringBytes
    FromServer: bool
    def __init__(self, /, *,
        Text: str | StringBytes = ...,
        FromServer: bool = ...,
    ) -> None: ...

struct_TextType_byte__Ne…nown_string_ ​

继承 Struct。

python
class struct_TextType_byte__NeedsTranslation_bool__SourceName_string__Message_string__Parameters___string__XUID_string__PlatformChatID_string__FilteredMessage_string__NeteaseExtraData___string__Unknown_string_(_Struct):
    TextType: int
    NeedsTranslation: bool
    SourceName: str | StringBytes
    Message: str | StringBytes
    Parameters: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
    XUID: str | StringBytes
    PlatformChatID: str | StringBytes
    FilteredMessage: str | StringBytes
    NeteaseExtraData: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
    Unknown: str | StringBytes
    def __init__(self, /, *,
        TextType: int = ...,
        NeedsTranslation: bool = ...,
        SourceName: str | StringBytes = ...,
        Message: str | StringBytes = ...,
        Parameters: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
        XUID: str | StringBytes = ...,
        PlatformChatID: str | StringBytes = ...,
        FilteredMessage: str | StringBytes = ...,
        NeteaseExtraData: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
        Unknown: str | StringBytes = ...,
    ) -> None: ...

struct_Time_int32_ ​

继承 Struct。

python
class struct_Time_int32_(_Struct):
    Time: int
    def __init__(self, /, *,
        Time: int = ...,
    ) -> None: ...

struct_Timestamp_int64__…sponse_bool_ ​

继承 Struct。

python
class struct_Timestamp_int64__NeedsResponse_bool_(_Struct):
    Timestamp: int
    NeedsResponse: bool
    def __init__(self, /, *,
        Timestamp: int = ...,
        NeedsResponse: bool = ...,
    ) -> None: ...

struct_Title_string__Message_string_ ​

继承 Struct。

python
class struct_Title_string__Message_string_(_Struct):
    Title: str | StringBytes
    Message: str | StringBytes
    def __init__(self, /, *,
        Title: str | StringBytes = ...,
        Message: str | StringBytes = ...,
    ) -> None: ...

Neomega · 使用、开发与参考文档