org.whispersystems.signalservice.api.messages.multidevice.DeviceContact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signal-service-java Show documentation
Show all versions of signal-service-java Show documentation
Signal Service communication library for Java
/**
* Copyright (C) 2014-2016 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
package org.whispersystems.signalservice.api.messages.multidevice;
import org.whispersystems.libsignal.util.guava.Optional;
import org.whispersystems.signalservice.api.messages.SignalServiceAttachmentStream;
public class DeviceContact {
private final String number;
private final Optional name;
private final Optional avatar;
private final Optional color;
public DeviceContact(String number, Optional name,
Optional avatar,
Optional color)
{
this.number = number;
this.name = name;
this.avatar = avatar;
this.color = color;
}
public Optional getAvatar() {
return avatar;
}
public Optional getName() {
return name;
}
public String getNumber() {
return number;
}
public Optional getColor() {
return color;
}
}