跳到主要内容

好友请求(GUAFriendReqInfo)

数据结构

GUAFriendReqType: 好友请求类型。

public enum GUAFriendReqType
{
Friend_REQ_TEXT = 10000, //text sharing
Friend_REQ_LINK, //link sharing
Friend_REQ_IMG, //texture sharing
Friend_REQ_INVITE, //app sharing
Friend_REQ_MUSIC, //music sharing
Friend_REQ_VIDEO, //video sharing
Friend_REQ_MINI_APP, //applets sharing
FRIEND_REQ_PULL_UP_MINI_APP, //applet pull up
Friend_REQ_ARK, //ARK sharing
Friend_REQ_OPEN_BUSINESS_VIEW, //Pull up business functions
Friend_REQ_WX_GAMELINE, //Game circle sharing
Friend_REQ_WX_CHANNEL_SHARE_VIDEO, //sharing to wxchannel
Friend_REQ_WX_STATE_TEXT, //sharing text to WXState
Friend_REQ_WX_STATE_PHOTO, //sharing photo to WXState
Friend_REQ_WX_STATE_MUSIC_VIDEO, //sharing audio to WXState
Friend_REQ_WX_CHANNEL_START_LIVE, //WeChat video account live
Friend_REQ_QQ_COMMON_SHARE, //QQ small world share



Friend_REQ_TEXT_SILENT = 20000, //text sharing(silence)
Friend_REQ_LINK_SILENT, //link sharing (silence)
Friend_REQ_IMG_SILENT, //texture sharing (silence)
Friend_REQ_INVITE_SILENT, //application invitation (silence)
Friend_REQ_MUSIC_SILENT, //music sharing (silence)
Friend_REQ_VIDEO_SILENT, //video sharing (silence)
Friend_REQ_MINI_APP_SILENT, //applets sharing (silence)
}

GUAFriendReqInfo: 好友请求信息。

参数类型说明备注
Typeint好友请求类型分享内容时必填
添加好友时选填
Userstring指定好友的用户 ID 或 OpenID必填
Titlestring分享内容的标题必填
Descriptionstring描述
简要描述共享的目的
选填
ImagePathstring图片路径
本地路径 (推荐) 或网络图片的 URL
选填
ThumbPathstring缩略图路径
本地路径 (推荐) 或网络缩略图的 URL
选填
MediaPathstring多媒体路径 (音乐或视频)
多媒体文件的本地路径
选填
Linkstring链接
图片,音乐,或视频等的超链接
选填
ExtraJsonstring扩展信息选填