event

package
v0.0.0-...-ad4a85e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FriendRecall

type FriendRecall struct {
	FromUid  string
	Sequence uint64
	Time     uint32
	Random   uint32
}

func ParseFriendRecallEvent

func ParseFriendRecallEvent(event *message.FriendRecall) *FriendRecall

type FriendRequest

type FriendRequest struct {
	SourceUin uint32
	SourceUid string
	Msg       string
	Source    string
}

func ParseFriendRequestNotice

func ParseFriendRequestNotice(event *message.FriendRequest, msg *message.PushMsg) *FriendRequest

type GroupEvent

type GroupEvent struct {
	GroupUin uint32
}

type GroupInvite

type GroupInvite struct {
	GroupUin   uint32
	InvitorUid string
}

func ParseInviteNotice

func ParseInviteNotice(event *message.GroupInvite) *GroupInvite

ParseInviteNotice 被邀请加群

type GroupMemberDecrease

type GroupMemberDecrease struct {
	GroupEvent
	MemberUid   string
	OperatorUid string
	ExitType    uint32
}

func ParseMemberDecreaseEvent

func ParseMemberDecreaseEvent(event *message.GroupChange) *GroupMemberDecrease

func (*GroupMemberDecrease) IsKicked

func (gmd *GroupMemberDecrease) IsKicked() bool

type GroupMemberIncrease

type GroupMemberIncrease struct {
	GroupEvent
	MemberUid  string
	InvitorUid string
	JoinType   uint32
}

func ParseMemberIncreaseEvent

func ParseMemberIncreaseEvent(event *message.GroupChange) *GroupMemberIncrease

type GroupMemberJoinRequest

type GroupMemberJoinRequest struct {
	GroupEvent
	TargetUid  string
	InvitorUid string
	Answer     string // 问题:(.*)答案:(.*)
}

func ParseRequestInvitationNotice

func ParseRequestInvitationNotice(event *message.GroupInvitation) *GroupMemberJoinRequest

ParseRequestInvitationNotice 邀请加群

func ParseRequestJoinNotice

func ParseRequestJoinNotice(event *message.GroupJoin) *GroupMemberJoinRequest

ParseRequestJoinNotice 主动加群

type GroupMute

type GroupMute struct {
	GroupEvent
	OperatorUid string
	TargetUid   string // when TargetUid is empty, mute all members
	Duration    uint32 // Duration == math.MaxUint32 when means mute all
}

func ParseGroupMuteEvent

func ParseGroupMuteEvent(event *message.GroupMute) *GroupMute

type GroupRecall

type GroupRecall struct {
	GroupEvent
	AuthorUid   string
	OperatorUid string
	Sequence    uint64
	Time        uint32
	Random      uint32
}

func ParseGroupRecallEvent

func ParseGroupRecallEvent(event *message.NotifyMessageBody) *GroupRecall

type Rename

type Rename struct {
	SubType  uint32 // self 0 friend 1
	Uin      uint32
	Nickname string
}

func ParseFriendRenameEvent

func ParseFriendRenameEvent(event *message.FriendRenameMsg, uin uint32) *Rename

func ParseSelfRenameEvent

func ParseSelfRenameEvent(event *message.SelfRenameMsg, sig *auth.SigInfo) *Rename

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL