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

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

There is a newer version: 2.15.3
Show 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 java.util.List;

public class DeviceGroup {

  private final byte[]                                  id;
  private final Optional                        name;
  private final List                            members;
  private final Optional avatar;
  private final boolean                                 active;
  private final Optional                       expirationTimer;
  private final Optional                        color;
  private final boolean                                 blocked;

  public DeviceGroup(byte[] id, Optional name, List members,
                     Optional avatar,
                     boolean active, Optional expirationTimer,
                     Optional color, boolean blocked)
  {
    this.id              = id;
    this.name            = name;
    this.members         = members;
    this.avatar          = avatar;
    this.active          = active;
    this.expirationTimer = expirationTimer;
    this.color           = color;
    this.blocked         = blocked;
  }

  public Optional getAvatar() {
    return avatar;
  }

  public Optional getName() {
    return name;
  }

  public byte[] getId() {
    return id;
  }

  public List getMembers() {
    return members;
  }

  public boolean isActive() {
    return active;
  }

  public Optional getExpirationTimer() {
    return expirationTimer;
  }

  public Optional getColor() {
    return color;
  }

  public boolean isBlocked() {
    return blocked;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy