friend

package
v3.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 19 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) 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) 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)

func (*Friend) GetFriendListPage

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

func (*Friend) GetSpecifiedFriendsInfo

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

func (*Friend) PinFriends added in v3.5.0

func (f *Friend) PinFriends(ctx context.Context, userIDPin *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) SyncAllFriendApplication

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

recv

func (*Friend) SyncAllFriendList

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

func (*Friend) SyncAllSelfFriendApplication

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

send

func (*Friend) SyncBothFriendRequest

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

func (*Friend) SyncFriends

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

Jump to

Keyboard shortcuts

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