Class GravatarProfileRequestResult
java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarProfileRequestResult
Represents metadata of a Gravatar profile request.
-
Constructor Summary
ConstructorsConstructorDescriptionGravatarProfileRequestResult(Instant requestInstant, boolean succeeded) Constructs a new GravatarProfileRequestResult. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the provided object is equal to this.booleanfailed()Returns whether the request failed.Returns the instant the request was made at.inthashCode()Returns a hashcode for this object.booleanReturns whether the request succeeded.toString()Returns a string representation of this object.
-
Constructor Details
-
GravatarProfileRequestResult
Constructs a new GravatarProfileRequestResult.- Parameters:
requestInstant- the instant when the request was madesucceeded- whether the request succeeded- Throws:
NullPointerException- if requestInstant is null
-
-
Method Details
-
getRequestInstant
Returns the instant the request was made at.- Returns:
- the instant of the request
-
succeeded
public boolean succeeded()Returns whether the request succeeded.- Returns:
- whether the request succeeded
-
failed
public boolean failed()Returns whether the request failed.- Returns:
- true if the request failed, false otherwise
-
equals
Returns whether the provided object is equal to this. -
hashCode
public int hashCode()Returns a hashcode for this object. -
toString
Returns a string representation of this object.
-