friend

package
v3.8.1-rc.12 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerBlackToLocalBlack

func ServerBlackToLocalBlack(info *sdkws.BlackInfo) *model_struct.LocalBlack

func ServerFriendRequestToLocalFriendRequest

func ServerFriendRequestToLocalFriendRequest(info *sdkws.FriendRequest) *model_struct.LocalFriendRequest

func ServerFriendToLocalFriend

func ServerFriendToLocalFriend(info *sdkws.FriendInfo) *model_struct.LocalFriend

Types

type Friend

type Friend struct {
	// contains filtered or unexported fields
}

func NewFriend

func NewFriend(loginUserID string, db db_interface.DataBase, user *user.User, conversationCh chan common.Cmd2Value) *Friend

func (*Friend) AcceptFriendApplication

func (f *Friend) AcceptFriendApplication(ctx context.Context, userIDHandleMsg *sdk.ProcessFriendApplicationParams) error

func (*Friend) AddBlack

func (f *Friend) AddBlack(ctx context.Context, blackUserID string, ex string) error

func (*Friend) AddFriend

func (f *Friend) AddFriend(ctx context.Context, userIDReqMsg *friend.ApplyToAddFriendReq) error

func (*Friend) CalculateHash added in v3.8.0

func (f *Friend) CalculateHash(friends []*model_struct.LocalFriend) uint64

func (*Friend) CheckFriend

func (f *Friend) CheckFriend(ctx context.Context, friendUserIDList []string) ([]*server_api_params.UserIDResult, error)

func (*Friend) Db

func (f *Friend) Db() db_interface.DataBase

func (*Friend) DeleteFriend

func (f *Friend) DeleteFriend(ctx context.Context, friendUserID string) error

func (*Friend) DoNotification

func (f *Friend) DoNotification(ctx context.Context, msg *sdkws.MsgData)

func (*Friend) GetBlackList

func (f *Friend) GetBlackList(ctx context.Context) ([]*model_struct.LocalBlack, error)

func (*Friend) GetDesignatedFriends added in v3.8.0

func (f *Friend) GetDesignatedFriends(ctx context.Context, friendIDs []string) ([]*sdkws.FriendInfo, error)

func (*Friend) GetFriendApplicationListAsApplicant

func (f *Friend) GetFriendApplicationListAsApplicant(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)

func (*Friend) GetFriendApplicationListAsRecipient

func (f *Friend) GetFriendApplicationListAsRecipient(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)

func (*Friend) GetFriendList

func (f *Friend) GetFriendList(ctx context.Context) ([]*server_api_params.FullUserInfo, error)

Full GetFriendList

func (*Friend) GetFriendListPage

func (f *Friend) GetFriendListPage(ctx context.Context, offset, count int32) ([]*server_api_params.FullUserInfo, error)

func (*Friend) GetFriendListPageV2 added in v3.8.0

func (f *Friend) GetFriendListPageV2(ctx context.Context, offset, count int32) (*GetFriendInfoListV2, error)

func (*Friend) GetSpecifiedFriendsInfo

func (f *Friend) GetSpecifiedFriendsInfo(ctx context.Context, friendUserIDList []string) ([]*server_api_params.FullUserInfo, error)

func (*Friend) IncrSyncFriends added in v3.8.0

func (f *Friend) IncrSyncFriends(ctx context.Context) error

func (*Friend) PinFriends added in v3.5.0

func (f *Friend) PinFriends(ctx context.Context, friends *sdk.SetFriendPinParams) error

func (*Friend) RefuseFriendApplication

func (f *Friend) RefuseFriendApplication(ctx context.Context, userIDHandleMsg *sdk.ProcessFriendApplicationParams) error

func (*Friend) RemoveBlack

func (f *Friend) RemoveBlack(ctx context.Context, blackUserID string) error

func (*Friend) RespondFriendApply

func (f *Friend) RespondFriendApply(ctx context.Context, req *friend.RespondFriendApplyReq) error

func (*Friend) SearchFriends

func (f *Friend) SearchFriends(ctx context.Context, param *sdk.SearchFriendsParam) ([]*sdk.SearchFriendItem, error)

func (*Friend) SetFriendRemark

func (f *Friend) SetFriendRemark(ctx context.Context, userIDRemark *sdk.SetFriendRemarkParams) error

func (*Friend) SetFriendsEx added in v3.5.0

func (f *Friend) SetFriendsEx(ctx context.Context, friendIDs []string, ex string) error

func (*Friend) SetListener

func (f *Friend) SetListener(listener func() open_im_sdk_callback.OnFriendshipListener)

func (*Friend) SetListenerForService

func (f *Friend) SetListenerForService(listener open_im_sdk_callback.OnListenerForService)

func (*Friend) SyncAllBlackList

func (f *Friend) SyncAllBlackList(ctx context.Context) error

func (*Friend) SyncAllBlackListWithoutNotice added in v3.8.0

func (f *Friend) SyncAllBlackListWithoutNotice(ctx context.Context) error

func (*Friend) SyncAllFriendApplication

func (f *Friend) SyncAllFriendApplication(ctx context.Context) error

recv friend request

func (*Friend) SyncAllFriendApplicationWithoutNotice added in v3.8.0

func (f *Friend) SyncAllFriendApplicationWithoutNotice(ctx context.Context) error

func (*Friend) SyncAllFriendList

func (f *Friend) SyncAllFriendList(ctx context.Context) error

func (*Friend) SyncAllSelfFriendApplication

func (f *Friend) SyncAllSelfFriendApplication(ctx context.Context) error

send friend request

func (*Friend) SyncAllSelfFriendApplicationWithoutNotice added in v3.8.0

func (f *Friend) SyncAllSelfFriendApplicationWithoutNotice(ctx context.Context) error

func (*Friend) SyncBothFriendRequest

func (f *Friend) SyncBothFriendRequest(ctx context.Context, fromUserID, toUserID string) error

type GetFriendInfoListV2 added in v3.8.0

type GetFriendInfoListV2 struct {
	FullUserInfoList []*server_api_params.FullUserInfo
	IsEnd            bool `json:"isEnd"`
}

Jump to

Keyboard shortcuts

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