AuthToken.java
3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
package com.bitstrips.imoji.monouser.models;
import com.google.gson.Gson;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
public class AuthToken
implements Serializable
{
private static final long serialVersionUID = 2128145895370237959L;
@Expose
@SerializedName("access_token")
private String a;
@Expose
@SerializedName("token_type")
private String b;
@Expose
@SerializedName("refresh_token")
private String c;
@Expose
@SerializedName("expires_in")
private long d;
@Expose
@SerializedName("last_updated")
private long e;
public boolean equals(Object paramObject)
{
if (paramObject == this) {
return true;
}
if (!(paramObject instanceof AuthToken)) {
return false;
}
paramObject = (AuthToken)paramObject;
return new EqualsBuilder().append(this.a, ((AuthToken)paramObject).a).append(this.b, ((AuthToken)paramObject).b).append(this.c, ((AuthToken)paramObject).c).append(this.d, ((AuthToken)paramObject).d).append(this.e, ((AuthToken)paramObject).e).isEquals();
}
public String getAccessToken()
{
return this.a;
}
public long getExpiresIn()
{
return this.d;
}
public long getExpiresInMillis()
{
return this.d * 1000L;
}
public long getLastUpdated()
{
return this.e;
}
public String getRefreshToken()
{
return this.c;
}
public String getTokenType()
{
return this.b;
}
public int hashCode()
{
return new HashCodeBuilder().append(this.a).append(this.b).append(this.c).append(this.d).append(this.e).toHashCode();
}
public void setAccessToken(String paramString)
{
this.a = paramString;
}
public void setExpiresIn(long paramLong)
{
this.d = paramLong;
}
public void setLastUpdated(long paramLong)
{
this.e = paramLong;
}
public void setRefreshToken(String paramString)
{
this.c = paramString;
}
public void setTokenType(String paramString)
{
this.b = paramString;
}
public String toJson()
{
return new Gson().toJson(this);
}
public String toString()
{
return ToStringBuilder.reflectionToString(this);
}
public AuthToken withAccessToken(String paramString)
{
this.a = paramString;
return this;
}
public AuthToken withExpiresIn(long paramLong)
{
this.d = paramLong;
return this;
}
public AuthToken withLastUpdated(long paramLong)
{
this.e = paramLong;
return this;
}
public AuthToken withRefreshToken(String paramString)
{
this.c = paramString;
return this;
}
public AuthToken withTokenType(String paramString)
{
this.b = paramString;
return this;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/monouser/models/AuthToken.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/