1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use crate::structs::{GroupDisband, GroupLeave, MemberPermissionChange};
use crate::{jce, pb};
pub mod builder;
pub mod decoder;
#[derive(Debug, Default)]
pub struct ReqPush {
pub uin: i64,
pub msg_infos: Vec<jce::PushMessageInfo>,
}
#[derive(Debug, Clone)]
pub enum PushTransInfo {
MemberLeave(GroupLeave),
MemberPermissionChange(MemberPermissionChange),
GroupDisband(GroupDisband),
}
#[derive(Debug, Clone)]
pub struct OnlinePushTrans {
pub msg_seq: i32,
pub msg_uid: i64,
pub msg_time: i32,
pub info: PushTransInfo,
}
#[derive(Debug, Default, Clone, PartialEq)]
pub struct GroupMessagePart {
pub seq: i32,
pub rand: i32,
pub group_code: i64,
pub group_name: String,
pub group_card: String,
pub from_uin: i64,
pub elems: Vec<pb::msg::Elem>,
pub time: i32,
pub ptt: Option<pb::msg::Ptt>,
pub pkg_num: i32,
pub pkg_index: i32,
pub div_seq: i32,
}