好友请求(GUAFriendReqInfo)
数据结构
- Unity
- Unreal Engine
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
: 好友请求信息。
参数 | 类型 | 说明 | 备注 |
---|---|---|---|
Type | int | 好友请求类型 | 分享内容时必填 添加好友时选填 |
User | string | 指定好友的用户 ID 或 OpenID | 必填 |
Title | string | 分享内容的标题 | 必填 |
Description | string | 描述 简要描述共享的目的 | 选填 |
ImagePath | string | 图片路径 本地路径 (推荐) 或网络图片的 URL | 选填 |
ThumbPath | string | 缩略图路径 本地路径 (推荐) 或网络缩略图的 URL | 选填 |
MediaPath | string | 多媒体路径 (音乐或视频) 多媒体文件的本地路径 | 选填 |
Link | string | 链接 图片,音乐,或视频等的超链接 | 选填 |
ExtraJson | string | 扩展信息 | 选填 |
GUAFriendReqType
: 好友请求类型。
typedef enum GUA_EXTERN GUAFriendReqType
{
kGUAFriendReqTypeText = 10000, //text sharing
kGUAFriendReqTypeLink, //link sharing
kGUAFriendReqTypeIMG, //texture sharing
kGUAFriendReqTypeInvite, //app sharing
kGUAFriendReqTypeMusic, //music sharing
kGUAFriendReqTypeVideo, //video sharing
kGUAFriendReqTypeMiniApp, //applets sharing
kGUAFriendReqTypePullUpMiniApp, //applet pull up
kGUAFriendReqTypeArk, //ARK sharing
kGUAFriendReqTypeOpenBusinessView, //Pull up business functions
kGUAFriendReqTypeWXGameLine, //Game circle sharing
kGUAFriendReqTypeWXChannelShareVideo, //sharing to wxchannel
kGUAFriendReqTypeWXStateText, //sharing text to WXState
kGUAFriendReqTypeWXStatePhoto, //sharing photo to WXState
kGUAFriendReqTypeWXStateMusicVideo, //sharing audio to WXState
kGUAFriendReqTypeWXChannelStartLive, //WeChat channel live
kGUAFriendReqTypeWithCommonShare, //small world share
kGUAFriendReqTypeTextSilent = 20000, //text sharing(silence)
kGUAFriendReqTypeLinkSilent, //link sharing (silence)
kGUAFriendReqTypeIMGSilent, //texture sharing (silence)
kGUAFriendReqTypeInviteSilent, //application invitation (silence)
kGUAFriendReqTypeMusicSilent, //music sharing (silence)
kGUAFriendReqTypeVideoSilent, //video sharing (silence)
kGUAFriendReqTypeMiniAppSilent, //applets sharing (silence)
};
GUAFriendReqInfo
: 好友请求信息。
参数 | 类型 | 说明 | 备注 |
---|---|---|---|
type | int | 好友请求类型 | 分享内容时必填 添加好友时选填 |
user | std::string | 指定好友的用户 ID 或 OpenID | 必填 |
title | std::string | 分享内容的标题 | 必填 |
description | std::string | 描述 简要描述共享的目的 | 选填 |
image_path | std::string | 图片路径 本地路径 (推荐) 或网络图片的 URL | 选填 |
thumb_path | std::string | 缩略图路径 本地路径 (推荐) 或网络缩略图的 URL | 选填 |
media_path | std::string | 多媒体路径 (音乐或视频) 多媒体文件的本地路径 | 选填 |
link | std::string | 链接 图片,音乐,或视频等的超链接 | 选填 |
extra_json | std::string | 扩展信息 | 选填 |