|
@@ -33,6 +33,7 @@ enum WXScene {
|
|
WXSceneTimeline = 1, /**< 朋友圈 */
|
|
WXSceneTimeline = 1, /**< 朋友圈 */
|
|
WXSceneFavorite = 2, /**< 收藏 */
|
|
WXSceneFavorite = 2, /**< 收藏 */
|
|
WXSceneSpecifiedSession = 3, /**< 指定联系人 */
|
|
WXSceneSpecifiedSession = 3, /**< 指定联系人 */
|
|
|
|
+ WXSceneState = 4, /**< 状态 */
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -66,30 +67,6 @@ enum WXMPWebviewType {
|
|
WXMPWebviewType_Ad = 0, /**< 广告网页 **/
|
|
WXMPWebviewType_Ad = 0, /**< 广告网页 **/
|
|
};
|
|
};
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-/*! @brief 应用支持接收微信的文件类型
|
|
|
|
- *
|
|
|
|
- */
|
|
|
|
-typedef NS_ENUM(UInt64, enAppSupportContentFlag) {
|
|
|
|
- MMAPP_SUPPORT_NOCONTENT = 0x0,
|
|
|
|
- MMAPP_SUPPORT_TEXT = 0x1,
|
|
|
|
- MMAPP_SUPPORT_PICTURE = 0x2,
|
|
|
|
- MMAPP_SUPPORT_LOCATION = 0x4,
|
|
|
|
- MMAPP_SUPPORT_VIDEO = 0x8,
|
|
|
|
- MMAPP_SUPPORT_AUDIO = 0x10,
|
|
|
|
- MMAPP_SUPPORT_WEBPAGE = 0x20,
|
|
|
|
-
|
|
|
|
- // Suport File Type
|
|
|
|
- MMAPP_SUPPORT_DOC = 0x40, // doc
|
|
|
|
- MMAPP_SUPPORT_DOCX = 0x80, // docx
|
|
|
|
- MMAPP_SUPPORT_PPT = 0x100, // ppt
|
|
|
|
- MMAPP_SUPPORT_PPTX = 0x200, // pptx
|
|
|
|
- MMAPP_SUPPORT_XLS = 0x400, // xls
|
|
|
|
- MMAPP_SUPPORT_XLSX = 0x800, // xlsx
|
|
|
|
- MMAPP_SUPPORT_PDF = 0x1000, // pdf
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
/*! @brief log的级别
|
|
/*! @brief log的级别
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
@@ -104,6 +81,55 @@ typedef NS_ENUM(NSInteger,WXLogLevel) {
|
|
*/
|
|
*/
|
|
typedef void(^WXLogBolock)(NSString *log);
|
|
typedef void(^WXLogBolock)(NSString *log);
|
|
|
|
|
|
|
|
+/*! @brief 微信Universal Link检查函数 (WXApi#checkUniversalLinkReady:),检查步骤枚举值
|
|
|
|
+ *
|
|
|
|
+ * WXULCheckStepParams 参数检测
|
|
|
|
+ * WXULCheckStepSystemVersion 当前系统版本检测
|
|
|
|
+ * WXULCheckStepWechatVersion 微信客户端版本检测
|
|
|
|
+ * WXULCheckStepSDKInnerOperation 微信SDK内部操作检测
|
|
|
|
+ * WXULCheckStepLaunchWechat App拉起微信检测
|
|
|
|
+ * WXULCheckStepBackToCurrentApp 由微信返回当前App检测
|
|
|
|
+ * WXULCheckStepFinal 最终结果
|
|
|
|
+ */
|
|
|
|
+typedef NS_ENUM(NSInteger, WXULCheckStep)
|
|
|
|
+{
|
|
|
|
+ WXULCheckStepParams,
|
|
|
|
+ WXULCheckStepSystemVersion,
|
|
|
|
+ WXULCheckStepWechatVersion,
|
|
|
|
+ WXULCheckStepSDKInnerOperation,
|
|
|
|
+ WXULCheckStepLaunchWechat,
|
|
|
|
+ WXULCheckStepBackToCurrentApp,
|
|
|
|
+ WXULCheckStepFinal,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+#pragma mark - WXCheckULStepResult
|
|
|
|
+
|
|
|
|
+/*! @brief 该类为微信Universal Link检测函数结果类
|
|
|
|
+*
|
|
|
|
+*/
|
|
|
|
+@interface WXCheckULStepResult : NSObject
|
|
|
|
+
|
|
|
|
+/** 是否成功 */
|
|
|
|
+@property(nonatomic, assign) BOOL success;
|
|
|
|
+/** 当前错误信息 */
|
|
|
|
+@property(nonatomic, strong) NSString* errorInfo;
|
|
|
|
+/** 修正建议 */
|
|
|
|
+@property(nonatomic, strong) NSString* suggestion;
|
|
|
|
+
|
|
|
|
+- (instancetype)initWithCheckResult:(BOOL)success errorInfo:(nullable NSString*)errorInfo suggestion:(nullable NSString*)suggestion;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/*! @brief 微信Universal Link检查函数 (WXApi#checkUniversalLinkReady:),回调Block
|
|
|
|
+ *
|
|
|
|
+ * @param step 当前检测步骤
|
|
|
|
+ * @param result 检测结果
|
|
|
|
+ */
|
|
|
|
+typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* result);
|
|
|
|
+
|
|
|
|
+
|
|
#pragma mark - BaseReq
|
|
#pragma mark - BaseReq
|
|
/*! @brief 该类为微信终端SDK所有请求类的基类
|
|
/*! @brief 该类为微信终端SDK所有请求类的基类
|
|
*
|
|
*
|
|
@@ -112,7 +138,7 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
|
|
|
|
/** 请求类型 */
|
|
/** 请求类型 */
|
|
@property (nonatomic, assign) int type;
|
|
@property (nonatomic, assign) int type;
|
|
-/** 由用户微信号和AppID组成的唯一标识,发送请求时第三方程序必须填写,用于校验微信用户是否换号登录*/
|
|
|
|
|
|
+/** 由用户微信号和AppID组成的唯一标识,需要校验微信用户是否换号登录时填写*/
|
|
@property (nonatomic, copy) NSString *openID;
|
|
@property (nonatomic, copy) NSString *openID;
|
|
|
|
|
|
@end
|
|
@end
|
|
@@ -140,6 +166,7 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
|
|
|
|
#ifndef BUILD_WITHOUT_PAY
|
|
#ifndef BUILD_WITHOUT_PAY
|
|
|
|
|
|
|
|
+#pragma mark - PayReq
|
|
/*! @brief 第三方向微信终端发起支付的消息结构体
|
|
/*! @brief 第三方向微信终端发起支付的消息结构体
|
|
*
|
|
*
|
|
* 第三方向微信终端发起支付的消息结构体,微信终端处理后会向第三方返回处理结果
|
|
* 第三方向微信终端发起支付的消息结构体,微信终端处理后会向第三方返回处理结果
|
|
@@ -175,7 +202,6 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
|
|
|
|
@end
|
|
@end
|
|
|
|
|
|
-
|
|
|
|
#pragma mark - WXOfflinePay
|
|
#pragma mark - WXOfflinePay
|
|
/*! @brief 第三方向微信终端发起离线支付
|
|
/*! @brief 第三方向微信终端发起离线支付
|
|
*
|
|
*
|
|
@@ -193,8 +219,36 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
|
|
|
|
@end
|
|
@end
|
|
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
|
|
+#pragma mark - WXNontaxPayReq
|
|
|
|
+@interface WXNontaxPayReq:BaseReq
|
|
|
|
+
|
|
|
|
+@property (nonatomic, copy) NSString *urlString;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+#pragma mark - WXNontaxPayResp
|
|
|
|
+@interface WXNontaxPayResp : BaseResp
|
|
|
|
+
|
|
|
|
+@property (nonatomic, copy) NSString *wxOrderId;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+#pragma mark - WXPayInsuranceReq
|
|
|
|
+@interface WXPayInsuranceReq : BaseReq
|
|
|
|
+
|
|
|
|
+@property (nonatomic, copy) NSString *urlString;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+#pragma mark - WXPayInsuranceResp
|
|
|
|
+@interface WXPayInsuranceResp : BaseResp
|
|
|
|
+
|
|
|
|
+@property (nonatomic, copy) NSString *wxOrderId;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
|
#pragma mark - SendAuthReq
|
|
#pragma mark - SendAuthReq
|
|
@@ -214,6 +268,7 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
* @note state字符串长度不能超过1K
|
|
* @note state字符串长度不能超过1K
|
|
*/
|
|
*/
|
|
@property (nonatomic, copy) NSString *state;
|
|
@property (nonatomic, copy) NSString *state;
|
|
|
|
+
|
|
@end
|
|
@end
|
|
|
|
|
|
#pragma mark - SendAuthResp
|
|
#pragma mark - SendAuthResp
|
|
@@ -233,7 +288,55 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
@property (nonatomic, copy, nullable) NSString *country;
|
|
@property (nonatomic, copy, nullable) NSString *country;
|
|
@end
|
|
@end
|
|
|
|
|
|
|
|
+#pragma mark - WXStateJumpInfo
|
|
|
|
+/*! @brief 状态发表时的小尾巴跳转信息
|
|
|
|
+ */
|
|
|
|
+@interface WXStateJumpInfo : NSObject
|
|
|
|
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+#pragma mark - WXStateJumpUrlInfo
|
|
|
|
+/*! @brief 状态小尾巴跳转指定url的信息
|
|
|
|
+ */
|
|
|
|
+@interface WXStateJumpUrlInfo : WXStateJumpInfo
|
|
|
|
+/** 跳转到指定的url
|
|
|
|
+ * @note 必填,url长度必须大于0且小于10K
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy) NSString *url;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+#pragma mark - WXStateSceneDataObject
|
|
|
|
+/*! @brief 场景类型额外参数基类
|
|
|
|
+ */
|
|
|
|
+@interface WXSceneDataObject : NSObject
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+#pragma mark - WXStateSceneDataObject
|
|
|
|
+/*! @brief 状态场景类型
|
|
|
|
+ * 用户填写WXStateSceneDataObject参数后,可以跳转到微信状态发表页
|
|
|
|
+ */
|
|
|
|
+@interface WXStateSceneDataObject : WXSceneDataObject
|
|
|
|
+
|
|
|
|
+/** 状态标志的ID
|
|
|
|
+ * @note 选填,文本长度必须小于10K
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy) NSString *stateId;
|
|
|
|
+/** 状态发表时附带的文本描述
|
|
|
|
+ * @note 选填,文本长度必须小于10K
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy) NSString *stateTitle;
|
|
|
|
+/** 后台校验token
|
|
|
|
+ * @note 选填,文本长度必须小于10K
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy) NSString *token;
|
|
|
|
+/** 小尾巴跳转所需的信息
|
|
|
|
+ * @note 必填,目前仅支持url跳转
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, strong) WXStateJumpInfo *stateJumpDataInfo;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
|
|
#pragma mark - SendMessageToWXReq
|
|
#pragma mark - SendMessageToWXReq
|
|
/*! @brief 第三方程序发送消息至微信终端程序的消息结构体
|
|
/*! @brief 第三方程序发送消息至微信终端程序的消息结构体
|
|
@@ -261,6 +364,11 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
* @note WXSceneSpecifiedSession时有效
|
|
* @note WXSceneSpecifiedSession时有效
|
|
*/
|
|
*/
|
|
@property (nonatomic, copy, nullable) NSString *toUserOpenId;
|
|
@property (nonatomic, copy, nullable) NSString *toUserOpenId;
|
|
|
|
+/** 目标场景附带信息
|
|
|
|
+ * @note 目前只针对状态场景
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, strong) WXSceneDataObject *sceneDataObject;
|
|
|
|
+
|
|
@end
|
|
@end
|
|
|
|
|
|
#pragma mark - SendMessageToWXResp
|
|
#pragma mark - SendMessageToWXResp
|
|
@@ -273,8 +381,6 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
@property(nonatomic, copy) NSString *country;
|
|
@property(nonatomic, copy) NSString *country;
|
|
@end
|
|
@end
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
#pragma mark - GetMessageFromWXReq
|
|
#pragma mark - GetMessageFromWXReq
|
|
/*! @brief 微信终端向第三方程序请求提供内容的消息结构体。
|
|
/*! @brief 微信终端向第三方程序请求提供内容的消息结构体。
|
|
*
|
|
*
|
|
@@ -347,34 +453,6 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
@end
|
|
@end
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-#pragma mark - OpenTempSessionReq
|
|
|
|
-/* ! @brief 第三方通知微信,打开临时会话
|
|
|
|
- *
|
|
|
|
- * 第三方通知微信,打开临时会话
|
|
|
|
- */
|
|
|
|
-@interface OpenTempSessionReq : BaseReq
|
|
|
|
-/** 需要打开的用户名
|
|
|
|
- * @attention 长度不能超过512字节
|
|
|
|
- */
|
|
|
|
-@property (nonatomic, copy) NSString *username;
|
|
|
|
-/** 开发者自定义参数,拉起临时会话后会发给开发者后台,可以用于识别场景
|
|
|
|
- * @attention 长度不能超过32位
|
|
|
|
- */
|
|
|
|
-@property (nonatomic, copy) NSString *sessionFrom;
|
|
|
|
-@end
|
|
|
|
-
|
|
|
|
-#pragma mark - OpenTempSessionResp
|
|
|
|
-/*! @brief 微信终端向第三方程序返回的OpenTempSessionReq处理结果。
|
|
|
|
- *
|
|
|
|
- * 第三方程序向微信终端发送OpenTempSessionReq后,微信发送回来的处理结果,该结果用OpenTempSessionResp表示。
|
|
|
|
- */
|
|
|
|
-@interface OpenTempSessionResp : BaseResp
|
|
|
|
-
|
|
|
|
-@end
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
#pragma mark - OpenWebviewReq
|
|
#pragma mark - OpenWebviewReq
|
|
/* ! @brief 第三方通知微信启动内部浏览器,打开指定网页
|
|
/* ! @brief 第三方通知微信启动内部浏览器,打开指定网页
|
|
*
|
|
*
|
|
@@ -456,50 +534,6 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
@end
|
|
@end
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-#pragma mark - JumpToBizProfileReq
|
|
|
|
-/* ! @brief 第三方通知微信,打开指定微信号profile页面
|
|
|
|
- *
|
|
|
|
- * 第三方通知微信,打开指定微信号profile页面
|
|
|
|
- */
|
|
|
|
-@interface JumpToBizProfileReq : BaseReq
|
|
|
|
-/** 跳转到该公众号的profile
|
|
|
|
- * @attention 长度不能超过512字节
|
|
|
|
- */
|
|
|
|
-@property (nonatomic, copy) NSString *username;
|
|
|
|
-/** 如果用户加了该公众号为好友,extMsg会上传到服务器
|
|
|
|
- * @attention 长度不能超过1024字节
|
|
|
|
- */
|
|
|
|
-@property (nonatomic, copy, nullable) NSString *extMsg;
|
|
|
|
-/**
|
|
|
|
- * 跳转的公众号类型
|
|
|
|
- * @see WXBizProfileType
|
|
|
|
- */
|
|
|
|
-@property (nonatomic, assign) int profileType;
|
|
|
|
-@end
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-#pragma mark - JumpToBizWebviewReq
|
|
|
|
-/* ! @brief 第三方通知微信,打开指定usrname的profile网页版
|
|
|
|
- *
|
|
|
|
- */
|
|
|
|
-@interface JumpToBizWebviewReq : BaseReq
|
|
|
|
-/** 跳转的网页类型,目前只支持广告页
|
|
|
|
- * @see WXMPWebviewType
|
|
|
|
- */
|
|
|
|
-@property(nonatomic, assign) int webType;
|
|
|
|
-/** 跳转到该公众号的profile网页版
|
|
|
|
- * @attention 长度不能超过512字节
|
|
|
|
- */
|
|
|
|
-@property(nonatomic, copy) NSString *tousrname;
|
|
|
|
-/** 如果用户加了该公众号为好友,extMsg会上传到服务器
|
|
|
|
- * @attention 长度不能超过1024字节
|
|
|
|
- */
|
|
|
|
-@property(nonatomic, copy, nullable) NSString *extMsg;
|
|
|
|
-
|
|
|
|
-@end
|
|
|
|
-
|
|
|
|
#pragma mark - WXCardItem
|
|
#pragma mark - WXCardItem
|
|
|
|
|
|
@interface WXCardItem : NSObject
|
|
@interface WXCardItem : NSObject
|
|
@@ -645,7 +679,7 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
@end
|
|
@end
|
|
|
|
|
|
#pragma mark - WXSubscribeMiniProgramMsg
|
|
#pragma mark - WXSubscribeMiniProgramMsg
|
|
-/** ! @brief 微信返回第三方请求选择发票结果
|
|
|
|
|
|
+/** ! @brief 第三方请求订阅小程序消息
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
@interface WXSubscribeMiniProgramMsgReq : BaseReq
|
|
@interface WXSubscribeMiniProgramMsgReq : BaseReq
|
|
@@ -676,34 +710,6 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
|
|
|
|
@end
|
|
@end
|
|
|
|
|
|
-#pragma mark - WXNontaxPayReq
|
|
|
|
-@interface WXNontaxPayReq:BaseReq
|
|
|
|
-
|
|
|
|
-@property (nonatomic, copy) NSString *urlString;
|
|
|
|
-
|
|
|
|
-@end
|
|
|
|
-
|
|
|
|
-#pragma mark - WXNontaxPayResp
|
|
|
|
-@interface WXNontaxPayResp : BaseResp
|
|
|
|
-
|
|
|
|
-@property (nonatomic, copy) NSString *wxOrderId;
|
|
|
|
-
|
|
|
|
-@end
|
|
|
|
-
|
|
|
|
-#pragma mark - WXPayInsuranceReq
|
|
|
|
-@interface WXPayInsuranceReq : BaseReq
|
|
|
|
-
|
|
|
|
-@property (nonatomic, copy) NSString *urlString;
|
|
|
|
-
|
|
|
|
-@end
|
|
|
|
-
|
|
|
|
-#pragma mark - WXPayInsuranceResp
|
|
|
|
-@interface WXPayInsuranceResp : BaseResp
|
|
|
|
-
|
|
|
|
-@property (nonatomic, copy) NSString *wxOrderId;
|
|
|
|
-
|
|
|
|
-@end
|
|
|
|
-
|
|
|
|
#pragma mark - WXMediaMessage
|
|
#pragma mark - WXMediaMessage
|
|
|
|
|
|
/*! @brief 多媒体消息结构体
|
|
/*! @brief 多媒体消息结构体
|
|
@@ -723,7 +729,7 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
*/
|
|
*/
|
|
@property (nonatomic, copy) NSString *description;
|
|
@property (nonatomic, copy) NSString *description;
|
|
/** 缩略图数据
|
|
/** 缩略图数据
|
|
- * @note 大小不能超过32K
|
|
|
|
|
|
+ * @note 大小不能超过64K
|
|
*/
|
|
*/
|
|
@property (nonatomic, strong, nullable) NSData *thumbData;
|
|
@property (nonatomic, strong, nullable) NSData *thumbData;
|
|
/**
|
|
/**
|
|
@@ -805,6 +811,85 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
*/
|
|
*/
|
|
@property (nonatomic, copy) NSString *musicLowBandDataUrl;
|
|
@property (nonatomic, copy) NSString *musicLowBandDataUrl;
|
|
|
|
|
|
|
|
+/**音乐封面图Url
|
|
|
|
+ * @note 长度不能超过10K
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy) NSString *songAlbumUrl;
|
|
|
|
+
|
|
|
|
+/**歌词信息 LRC格式
|
|
|
|
+ * @note 长度不能超过32K
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy, nullable) NSString *songLyric;
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+#pragma mark - WXMusicVideoObject
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+@interface WXMusicVideoObject : NSObject
|
|
|
|
+
|
|
|
|
+/*! @brief 返回一个WXMusicVideoObject对象
|
|
|
|
+ *
|
|
|
|
+ * @note 返回的WXMusicVideoObject对象是自动释放的
|
|
|
|
+ */
|
|
|
|
++ (WXMusicVideoObject *)object;
|
|
|
|
+
|
|
|
|
+/** 音乐网页的url地址
|
|
|
|
+ * @note 长度不能超过10K,不能为空
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy) NSString *musicUrl;
|
|
|
|
+
|
|
|
|
+/** 音乐数据url地址
|
|
|
|
+ * @note 长度不能超过10K,不能为空
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy) NSString *musicDataUrl;
|
|
|
|
+
|
|
|
|
+/**歌手名
|
|
|
|
+ * @note 长度不能超过1k,不能为空
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy) NSString *singerName;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @note 音乐时长, 单位毫秒
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, assign) UInt32 duration;
|
|
|
|
+
|
|
|
|
+/**歌词信息 LRC格式
|
|
|
|
+ * @note 长度不能超过32K
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy) NSString *songLyric;
|
|
|
|
+
|
|
|
|
+/**高清封面图
|
|
|
|
+ * @note 大小不能超过1M
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, strong) NSData *hdAlbumThumbData;
|
|
|
|
+
|
|
|
|
+/**音乐专辑名称
|
|
|
|
+ * @note 长度不能超过1k
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy, nullable) NSString *albumName;
|
|
|
|
+
|
|
|
|
+/**音乐流派
|
|
|
|
+ * @note 长度不能超过1k
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy, nullable) NSString *musicGenre;
|
|
|
|
+
|
|
|
|
+/**发行时间
|
|
|
|
+ * @note Unix时间戳,单位为秒
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, assign) UInt64 issueDate;
|
|
|
|
+
|
|
|
|
+/**音乐标识符
|
|
|
|
+ * @note 长度不能超过1K,从微信跳回应用时会带上
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy, nullable) NSString *identification;
|
|
|
|
+
|
|
|
|
+/**运营H5地址
|
|
|
|
+ * @note 选填,建议填写,用户进入歌曲详情页将展示内嵌的运营H5,可展示该歌曲的相关评论、歌曲推荐等内容,不可诱导下载、分享等。
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy, nullable) NSString *musicOperationUrl;
|
|
|
|
+
|
|
@end
|
|
@end
|
|
|
|
|
|
|
|
|
|
@@ -1018,6 +1103,33 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
*/
|
|
*/
|
|
@property (nonatomic, assign) WXMiniProgramType miniProgramType;
|
|
@property (nonatomic, assign) WXMiniProgramType miniProgramType;
|
|
|
|
|
|
|
|
+/** 是否禁用转发 */
|
|
|
|
+@property (nonatomic, assign) BOOL disableForward;
|
|
|
|
+
|
|
|
|
+@property (nonatomic, assign) BOOL isUpdatableMessage;
|
|
|
|
+
|
|
|
|
+@property (nonatomic, assign) BOOL isSecretMessage;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/** 业务所需的额外信息 */
|
|
|
|
+@property (nonatomic, strong, nullable) NSDictionary *extraInfoDic;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+#pragma mark - WXGameLiveObject
|
|
|
|
+
|
|
|
|
+/*! @brief WXGameLiveObject对象
|
|
|
|
+ *
|
|
|
|
+ * @note 游戏直播消息类型
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+@interface WXGameLiveObject : NSObject
|
|
|
|
+
|
|
|
|
++ (WXGameLiveObject *)object;
|
|
|
|
+
|
|
|
|
+/** 业务所需的额外信息 */
|
|
|
|
+@property (nonatomic, strong, nullable) NSDictionary *extraInfoDic;
|
|
|
|
+
|
|
@end
|
|
@end
|
|
|
|
|
|
#pragma mark - WXLaunchMiniProgramReq
|
|
#pragma mark - WXLaunchMiniProgramReq
|
|
@@ -1047,6 +1159,12 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
* @attention json格式
|
|
* @attention json格式
|
|
*/
|
|
*/
|
|
@property (nonatomic, copy, nullable) NSString *extMsg;
|
|
@property (nonatomic, copy, nullable) NSString *extMsg;
|
|
|
|
+
|
|
|
|
+/** extDic
|
|
|
|
+ * @attention 字典,可存放图片等比较大的数据
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy, nullable) NSDictionary *extDic;
|
|
|
|
+
|
|
@end
|
|
@end
|
|
|
|
|
|
#pragma mark - WXLaunchMiniProgramResp
|
|
#pragma mark - WXLaunchMiniProgramResp
|
|
@@ -1084,6 +1202,10 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
*/
|
|
*/
|
|
@property (nonatomic, copy, nullable) NSString *extInfo;
|
|
@property (nonatomic, copy, nullable) NSString *extInfo;
|
|
|
|
|
|
|
|
+/** extData数据
|
|
|
|
+ * @note
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, strong, nullable) NSData *extData;
|
|
@end
|
|
@end
|
|
|
|
|
|
|
|
|
|
@@ -1098,4 +1220,28 @@ typedef void(^WXLogBolock)(NSString *log);
|
|
@property (nonatomic, copy, nullable) NSString *extMsg;
|
|
@property (nonatomic, copy, nullable) NSString *extMsg;
|
|
|
|
|
|
@end
|
|
@end
|
|
|
|
+
|
|
|
|
+#pragma mark - WXOpenCustomerServiceReq
|
|
|
|
+@interface WXOpenCustomerServiceReq : BaseReq
|
|
|
|
+
|
|
|
|
++ (WXOpenCustomerServiceReq *)object;
|
|
|
|
+
|
|
|
|
+/**企微客服发起流程 url
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy, nullable) NSString *url;
|
|
|
|
+
|
|
|
|
+/**企业 id
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy, nullable) NSString *corpid;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
|
|
+@interface WXOpenCustomerServiceResp : BaseResp
|
|
|
|
+
|
|
|
|
+/** 业务返回数据
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, copy, nullable) NSString *extMsg;
|
|
|
|
+
|
|
|
|
+@end
|
|
|
|
+
|
|
NS_ASSUME_NONNULL_END
|
|
NS_ASSUME_NONNULL_END
|