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

org.whispersystems.signalservice.internal.push.PreKeyState Maven / Gradle / Ivy

There is a newer version: 2.15.3
Show newest version
package org.whispersystems.signalservice.internal.push;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import org.whispersystems.libsignal.IdentityKey;
import org.whispersystems.signalservice.api.push.SignedPreKeyEntity;
import org.whispersystems.signalservice.internal.util.JsonUtil;

import java.util.List;

public class PreKeyState {

  @JsonProperty
  @JsonSerialize(using = JsonUtil.IdentityKeySerializer.class)
  @JsonDeserialize(using = JsonUtil.IdentityKeyDeserializer.class)
  private IdentityKey        identityKey;

  @JsonProperty
  private List preKeys;

  @JsonProperty
  private SignedPreKeyEntity signedPreKey;


  public PreKeyState(List preKeys, SignedPreKeyEntity signedPreKey, IdentityKey identityKey) {
    this.preKeys       = preKeys;
    this.signedPreKey  = signedPreKey;
    this.identityKey   = identityKey;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy