35 lines
721 B
Java
35 lines
721 B
Java
package org.whispersystems.signalservice.api.profiles;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
public class SignalServiceProfileWrite {
|
|
|
|
@JsonProperty
|
|
private String version;
|
|
|
|
@JsonProperty
|
|
private byte[] name;
|
|
|
|
@JsonProperty
|
|
private boolean avatar;
|
|
|
|
@JsonProperty
|
|
private byte[] commitment;
|
|
|
|
@JsonCreator
|
|
public SignalServiceProfileWrite(){
|
|
}
|
|
|
|
public SignalServiceProfileWrite(String version, byte[] name, boolean avatar, byte[] commitment) {
|
|
this.version = version;
|
|
this.name = name;
|
|
this.avatar = avatar;
|
|
this.commitment = commitment;
|
|
}
|
|
|
|
public boolean hasAvatar() {
|
|
return avatar;
|
|
}
|
|
}
|