V2TimOfflinePushConfig constructor
V2TimOfflinePushConfig({})
Implementation
V2TimOfflinePushConfig({
required this.businessID,
required this.token,
required this.isTPNSToken,
required this.isVoip,
}) {
// 默认厂商 token, 例如 APNS/小米 push/Huawei push 等
// TIMOfflinePushTokenType_Default = 0,
// TPNS
// TIMOfflinePushTokenType_TPNS = 1,
// VoIP push
// TIMOfflinePushTokenType_VOIP = 2,
if (isTPNSToken) {
_pushTokenType = 1;
} else if (isVoip) {
_pushTokenType = 2;
} else {
_pushTokenType = 0;
}
}