![JAR search and dependency download from the Maven repository](/logo.png)
com.xiaomi.xmpush.server.TargetedMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz-mipush-sdk Show documentation
Show all versions of nutz-mipush-sdk Show documentation
小米官方SDK的反编译后的源码,稍微改一下,用log4j输出日志
The newest version!
package com.xiaomi.xmpush.server;
public class TargetedMessage {
private Message message;
private int targetType;
private String target;
public static final int TARGET_TYPE_REGID = 1;
public static final int TARGET_TYPE_ALIAS = 2;
public static final int TARGET_TYPE_USER_ACCOUNT = 3;
public TargetedMessage setTarget(int targetType, String target) {
this.targetType = targetType;
this.target = target;
return this;
}
public TargetedMessage setMessage(Message message) {
this.message = message;
return this;
}
public Message getMessage() {
return this.message;
}
public int getTargetType() {
return this.targetType;
}
public String getTarget() {
return this.target;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy