|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxinmy.weixin4j.model.qr.QRParameter
public class QRParameter
二维码参数对象
创建整型临时二维码,
创建整型永久二维码,
创建字符串型永久二维码,
创建卡券二维码,
Serialized Form| Method Summary | |
|---|---|
static QRParameter |
createCardCouponQR(Integer expireSeconds,
CardQR... cardQRs)
创建卡券二维码 |
static QRParameter |
createPermanenceQR(int sceneValue)
创建永久二维码(场景值为int) |
static QRParameter |
createPermanenceQR(String sceneValue)
创建永久二维码(场景值为string) |
static QRParameter |
createTemporaryQR(int expireSeconds,
long sceneValue)
创建临时二维码(场景值为int) |
static QRParameter |
createTemporaryQR(int expireSeconds,
String sceneValue)
创建临时二维码(场景值为string) |
boolean |
equals(Object obj)
|
Integer |
getExpireSeconds()
|
QRType |
getQrType()
|
com.alibaba.fastjson.JSONObject |
getSceneContent()
|
String |
getSceneValue()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Integer getExpireSeconds()
public QRType getQrType()
public String getSceneValue()
public com.alibaba.fastjson.JSONObject getSceneContent()
public static QRParameter createTemporaryQR(int expireSeconds,
long sceneValue)
expireSeconds - 二维码有效时间,以秒为单位。 最大不超过2592000(即30天)sceneValue - 二维码的场景值 临时二维码最大值为无符号32位非0整型
public static QRParameter createTemporaryQR(int expireSeconds,
String sceneValue)
expireSeconds - 二维码有效时间,以秒为单位。 最大不超过2592000(即30天)sceneValue - 二维码的场景值
public static QRParameter createPermanenceQR(int sceneValue)
sceneValue - 场景值 最大值为100000 (目前参数只支持1--100000)public static QRParameter createPermanenceQR(String sceneValue)
sceneValue - 场景值
public static QRParameter createCardCouponQR(Integer expireSeconds,
CardQR... cardQRs)
expireSeconds - 指定二维码的有效时间,范围是60 ~ 1800秒。不填默认为365天有效cardQRs - 二维码参数:二维码领取单张卡券/多张卡券public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||