Package com.onfido.model
Class PhotoReasons
- java.lang.Object
-
- com.onfido.model.PhotoReasons
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class PhotoReasons extends Object
PhotoReasons
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhotoReasons.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DIGITAL_TAMPERINGstatic StringSERIALIZED_NAME_EMULATORstatic StringSERIALIZED_NAME_FAKE_WEBCAMstatic StringSERIALIZED_NAME_REASONSstatic StringSERIALIZED_NAME_TIME_OF_CAPTURE
-
Constructor Summary
Constructors Constructor Description PhotoReasons()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PhotoReasonsdigitalTampering(String digitalTampering)PhotoReasonsemulator(String emulator)booleanequals(Object o)PhotoReasonsfakeWebcam(String fakeWebcam)static PhotoReasonsfromJson(String jsonString)Create an instance of PhotoReasons given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetDigitalTampering()Flags when evidence is found that the image was manipulated by Photoshop, or other software.StringgetEmulator()Flags when evidence is found that an Android emulator was used.StringgetFakeWebcam()Flags when evidence is found that a fake webcam was used.StringgetReasons()Additional comma separated details such as the exact digital tampering software used, or the name of the fake webcam.StringgetTimeOfCapture()Flags when evidence is found that the live photo was taken more than 24 hours before live photo upload.inthashCode()PhotoReasonsputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.PhotoReasonsreasons(String reasons)voidsetDigitalTampering(String digitalTampering)voidsetEmulator(String emulator)voidsetFakeWebcam(String fakeWebcam)voidsetReasons(String reasons)voidsetTimeOfCapture(String timeOfCapture)PhotoReasonstimeOfCapture(String timeOfCapture)StringtoJson()Convert an instance of PhotoReasons to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DIGITAL_TAMPERING
public static final String SERIALIZED_NAME_DIGITAL_TAMPERING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FAKE_WEBCAM
public static final String SERIALIZED_NAME_FAKE_WEBCAM
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIME_OF_CAPTURE
public static final String SERIALIZED_NAME_TIME_OF_CAPTURE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMULATOR
public static final String SERIALIZED_NAME_EMULATOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REASONS
public static final String SERIALIZED_NAME_REASONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
digitalTampering
public PhotoReasons digitalTampering(String digitalTampering)
-
getDigitalTampering
@Nullable public String getDigitalTampering()
Flags when evidence is found that the image was manipulated by Photoshop, or other software.- Returns:
- digitalTampering
-
setDigitalTampering
public void setDigitalTampering(String digitalTampering)
-
fakeWebcam
public PhotoReasons fakeWebcam(String fakeWebcam)
-
getFakeWebcam
@Nullable public String getFakeWebcam()
Flags when evidence is found that a fake webcam was used.- Returns:
- fakeWebcam
-
setFakeWebcam
public void setFakeWebcam(String fakeWebcam)
-
timeOfCapture
public PhotoReasons timeOfCapture(String timeOfCapture)
-
getTimeOfCapture
@Nullable public String getTimeOfCapture()
Flags when evidence is found that the live photo was taken more than 24 hours before live photo upload.- Returns:
- timeOfCapture
-
setTimeOfCapture
public void setTimeOfCapture(String timeOfCapture)
-
emulator
public PhotoReasons emulator(String emulator)
-
getEmulator
@Nullable public String getEmulator()
Flags when evidence is found that an Android emulator was used.- Returns:
- emulator
-
setEmulator
public void setEmulator(String emulator)
-
reasons
public PhotoReasons reasons(String reasons)
-
getReasons
@Nullable public String getReasons()
Additional comma separated details such as the exact digital tampering software used, or the name of the fake webcam.- Returns:
- reasons
-
setReasons
public void setReasons(String reasons)
-
putAdditionalProperty
public PhotoReasons putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the PhotoReasons instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to PhotoReasons
-
fromJson
public static PhotoReasons fromJson(String jsonString) throws IOException
Create an instance of PhotoReasons given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PhotoReasons
- Throws:
IOException- if the JSON string is invalid with respect to PhotoReasons
-
toJson
public String toJson()
Convert an instance of PhotoReasons to an JSON string- Returns:
- JSON string
-
-