2013-11-01 01:23:45 +01:00
|
|
|
package org.whispersystems.textsecure.push;
|
|
|
|
|
|
|
|
public class PushBody {
|
|
|
|
|
|
|
|
private final int type;
|
2014-02-18 21:48:20 +01:00
|
|
|
private final int remoteRegistrationId;
|
2013-11-01 01:23:45 +01:00
|
|
|
private final byte[] body;
|
|
|
|
|
2014-02-18 21:48:20 +01:00
|
|
|
public PushBody(int type, int remoteRegistrationId, byte[] body) {
|
|
|
|
this.type = type;
|
|
|
|
this.remoteRegistrationId = remoteRegistrationId;
|
|
|
|
this.body = body;
|
2013-11-01 01:23:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public int getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte[] getBody() {
|
|
|
|
return body;
|
|
|
|
}
|
2014-02-18 21:48:20 +01:00
|
|
|
|
|
|
|
public int getRemoteRegistrationId() {
|
|
|
|
return remoteRegistrationId;
|
|
|
|
}
|
2013-11-01 01:23:45 +01:00
|
|
|
}
|