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

cn.authing.sdk.java.dto.CheckPushCodeStatusDataDto Maven / Gradle / Ivy

There is a newer version: 3.1.10
Show newest version
package cn.authing.sdk.java.dto;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

import cn.authing.sdk.java.dto.LoginTokenResponseDataDto;

public class CheckPushCodeStatusDataDto {
    /**
     * 推送码状态。按照推送登录顺序,共分为 PUSHED(已推送)、AUTHORIZED(用户已授权)、CANCELLED(取消授权)、EXPIRED(推送登录过期)以及 ERROR(未知错误)五种状态。
     */
    @JsonProperty("status")
    private Status status;
    /**
     * 当推送码状态为已授权,此数据才会返回。
     */
    @JsonProperty("tokenSet")
    private LoginTokenResponseDataDto tokenSet;

    public Status getStatus() {
        return status;
    }
    public void setStatus(Status status) {
        this.status = status;
    }

    public LoginTokenResponseDataDto getTokenSet() {
        return tokenSet;
    }
    public void setTokenSet(LoginTokenResponseDataDto tokenSet) {
        this.tokenSet = tokenSet;
    }


    /**
     * 推送码状态。按照推送登录顺序,共分为 PUSHED(已推送)、AUTHORIZED(用户已授权)、CANCELLED(取消授权)、EXPIRED(推送登录过期)以及 ERROR(未知错误)五种状态。
     */
    public static enum Status {

        @JsonProperty("PUSHED")
        PUSHED("PUSHED"),

        @JsonProperty("AUTHORIZED")
        AUTHORIZED("AUTHORIZED"),

        @JsonProperty("CANCELLED")
        CANCELLED("CANCELLED"),

        @JsonProperty("EXPIRED")
        EXPIRED("EXPIRED"),

        @JsonProperty("ERROR")
        ERROR("ERROR"),
        ;

        private String value;

        Status(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy