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

discord4j.discordjson.json.AccessTokenData Maven / Gradle / Ivy

There is a newer version: 1.7.9
Show newest version
package discord4j.discordjson.json;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import discord4j.discordjson.possible.Possible;
import org.immutables.value.Value;

@Value.Immutable
@JsonSerialize(as = ImmutableAccessTokenData.class)
@JsonDeserialize(as = ImmutableAccessTokenData.class)
public interface AccessTokenData {

    static ImmutableAccessTokenData.Builder builder() {
        return ImmutableAccessTokenData.builder();
    }

    @JsonProperty("access_token")
    String accessToken();

    @JsonProperty("token_type")
    String tokenType();

    @JsonProperty("expires_in")
    long expiresIn();

    Possible guild();

    @JsonProperty("refresh_token")
    Possible refreshToken();

    String scope();

    Possible webhook();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy