All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.whispersystems.signalservice.api.messages.multidevice.DeviceContact Maven / Gradle / Ivy

The newest version!
/**
 * 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;
import org.whispersystems.signalservice.api.push.SignalServiceAddress;

public class DeviceContact {

  private final SignalServiceAddress                    address;
  private final Optional                        name;
  private final Optional avatar;
  private final Optional                        color;
  private final Optional               verified;
  private final Optional                        profileKey;
  private final boolean                                 blocked;
  private final Optional                       expirationTimer;

  public DeviceContact(SignalServiceAddress address, Optional name,
                       Optional avatar,
                       Optional color,
                       Optional verified,
                       Optional profileKey,
                       boolean blocked,
                       Optional expirationTimer)
  {
    this.address         = address;
    this.name            = name;
    this.avatar          = avatar;
    this.color           = color;
    this.verified        = verified;
    this.profileKey      = profileKey;
    this.blocked         = blocked;
    this.expirationTimer = expirationTimer;
  }

  public Optional getAvatar() {
    return avatar;
  }

  public Optional getName() {
    return name;
  }

  public SignalServiceAddress getAddress() {
    return address;
  }

  public Optional getColor() {
    return color;
  }

  public Optional getVerified() {
    return verified;
  }

  public Optional getProfileKey() {
    return profileKey;
  }

  public boolean isBlocked() {
    return blocked;
  }

  public Optional getExpirationTimer() {
    return expirationTimer;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy