Created
October 26, 2022 15:47
-
-
Save iamnaran/b812abee569bc27a2a2855187cccc6f4 to your computer and use it in GitHub Desktop.
MediaPreviewModel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MediaPreviewModel implements Serializable { | |
public enum MediaPickedType { | |
TYPE_CAMERA, | |
TYPE_PHOTOS, | |
} | |
private String mediaId; | |
//file uri | |
private String uri; | |
private String imageBase64; | |
// uploading with api on selected | |
private String uploadedUrlFromApi; | |
private String fileName; | |
private long fileSize; | |
private String fileMimeType; | |
// uploading with api on selected | |
private boolean isUploaded = false; | |
// retry if failed | |
private boolean isFailed = false; | |
private boolean isUploading = false; | |
private MediaPickedType mediaPickedType; | |
public MediaPreviewModel() { | |
} | |
public String getMediaId() { | |
return mediaId; | |
} | |
public void setMediaId(String mediaId) { | |
this.mediaId = mediaId; | |
} | |
public String getUri() { | |
return uri; | |
} | |
public void setUri(String uri) { | |
this.uri = uri; | |
} | |
public String getUploadedUrlFromApi() { | |
return uploadedUrlFromApi; | |
} | |
public void setUploadedUrlFromApi(String uploadedUrlFromApi) { | |
this.uploadedUrlFromApi = uploadedUrlFromApi; | |
} | |
public String getFileName() { | |
return fileName; | |
} | |
public void setFileName(String fileName) { | |
this.fileName = fileName; | |
} | |
public long getFileSize() { | |
return fileSize; | |
} | |
public void setFileSize(long fileSize) { | |
this.fileSize = fileSize; | |
} | |
public boolean isUploaded() { | |
return isUploaded; | |
} | |
public void setUploaded(boolean uploaded) { | |
isUploaded = uploaded; | |
} | |
public boolean isFailed() { | |
return isFailed; | |
} | |
public void setFailed(boolean failed) { | |
isFailed = failed; | |
} | |
public MediaPickedType getMediaPickedType() { | |
return mediaPickedType; | |
} | |
public void setMediaPickedType(MediaPickedType mediaPickedType) { | |
this.mediaPickedType = mediaPickedType; | |
} | |
public String getFileMimeType() { | |
return fileMimeType; | |
} | |
public void setFileMimeType(String fileMimeType) { | |
this.fileMimeType = fileMimeType; | |
} | |
public boolean isUploading() { | |
return isUploading; | |
} | |
public void setUploading(boolean uploading) { | |
isUploading = uploading; | |
} | |
public String getImageBase64() { | |
return imageBase64; | |
} | |
public void setImageBase64(String imageBase64) { | |
this.imageBase64 = imageBase64; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment