Class GetAccessTokenRequest


  • public class GetAccessTokenRequest
    extends Object
    GetAccessTokenRequest
    • Field Detail

      • appKey

        @SerializedName("app_key")
        private String appKey
      • sign

        @SerializedName("sign")
        private String sign
      • time

        @SerializedName("time")
        private Long time
    • Constructor Detail

      • GetAccessTokenRequest

        public GetAccessTokenRequest()
    • Method Detail

      • getAppKey

        public String getAppKey()
        app_key
        Returns:
        appKey
      • setAppKey

        public void setAppKey​(String appKey)
      • getSign

        public String getSign()
        Sign Method Concatenate app_key, time, app_secret in turn, and do sha1() . Example app_key = mBOMg20QW11BbtyH4Zh0 time = 1647847498 app_secret = V6aRfxlPJwN3ViJSIFSCdxPvneajuJsh sign = sha1(mBOMg20QW11BbtyH4Zh01647847498V6aRfxlPJwN3ViJSIFSCdxPvneajuJsh) = 7293d385b9225b3c3f232b76ba97255d0e21063e
        Returns:
        sign
      • setSign

        public void setSign​(String sign)
      • getTime

        public Long getTime()
        Quest timestamp (Second), should be within +-1000s around current timestamp
        Returns:
        time
      • setTime

        public void setTime​(Long time)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toIndentedString

        private String toIndentedString​(Object o)
        Convert the given object to string with each line indented by 4 spaces (except the first line).