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

com.github.princesslana.eriscasper.data.gateway.IdentifyPayload Maven / Gradle / Ivy

The newest version!
package com.github.princesslana.eriscasper.data.gateway;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.github.princesslana.eriscasper.data.Snowflake;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import org.immutables.value.Value;
import com.github.princesslana.eriscasper.data.resource.*;

@Value.Immutable
@JsonDeserialize(as=ImmutableIdentifyPayload.class)
public interface IdentifyPayload {
  /**
    * authentication token-
    */
  @JsonProperty("token")
  String getToken();

  /**
    * connection properties-
    */
  @JsonProperty("properties")
  ConnectionPropertiesPayload getProperties();

  /**
    * whether this connection supports compression of packetsfalse
    */
  @JsonProperty("compress")
  java.util.Optional isCompress();

  /**
    * value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list50
    */
  @JsonProperty("large_threshold")
  java.util.Optional getLargeThreshold();

  /**
    * used for Guild Sharding-
    */
  @JsonProperty("shard")
  java.util.Optional getShard();

  /**
    * presence structure for initial presence information-
    */
  @JsonProperty("presence")
  java.util.Optional getPresence();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy