aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/org/bienvenidoainternet/baiparser/structure
diff options
context:
space:
mode:
authorLibravatar Renard 2016-04-08 20:14:59 -0300
committerLibravatar Renard 2016-04-08 20:14:59 -0300
commitfe76420bfc927ee5fc002215724c09a6d2d614c2 (patch)
tree01f9dcb98b8cb78570ab223f0fcac2fe79f6c46e /app/src/main/java/org/bienvenidoainternet/baiparser/structure
parente92d1607eb9e71951928155cea53d65b7c665726 (diff)
downloadBaiApp-fe76420bfc927ee5fc002215724c09a6d2d614c2.tar.gz
BaiApp-fe76420bfc927ee5fc002215724c09a6d2d614c2.tar.xz
BaiApp-fe76420bfc927ee5fc002215724c09a6d2d614c2.zip
Nuevo visor de imágenes
Diffstat (limited to 'app/src/main/java/org/bienvenidoainternet/baiparser/structure')
-rw-r--r--app/src/main/java/org/bienvenidoainternet/baiparser/structure/BoardItemFile.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/src/main/java/org/bienvenidoainternet/baiparser/structure/BoardItemFile.java b/app/src/main/java/org/bienvenidoainternet/baiparser/structure/BoardItemFile.java
new file mode 100644
index 0000000..eeff1c4
--- /dev/null
+++ b/app/src/main/java/org/bienvenidoainternet/baiparser/structure/BoardItemFile.java
@@ -0,0 +1,49 @@
+package org.bienvenidoainternet.baiparser.structure;
+
+import android.os.Parcel;
+import android.os.Parcelable;
+
+/**
+ * Created by Renard on 08-04-2016.
+ */
+public class BoardItemFile implements Parcelable{
+ public String file;
+ public String fileURL;
+ public String boardDir;
+
+ public BoardItemFile(String fileURL, String file, String boardDir){
+ this.fileURL = fileURL;
+ this.file = file;
+ this.boardDir = boardDir;
+ }
+
+ protected BoardItemFile(Parcel in) {
+ file = in.readString();
+ fileURL = in.readString();
+ boardDir = in.readString();
+ }
+
+ public static final Creator<BoardItemFile> CREATOR = new Creator<BoardItemFile>() {
+ @Override
+ public BoardItemFile createFromParcel(Parcel in) {
+ return new BoardItemFile(in);
+ }
+
+ @Override
+ public BoardItemFile[] newArray(int size) {
+ return new BoardItemFile[size];
+ }
+ };
+
+ @Override
+ public int describeContents() {
+ return 0;
+ }
+
+ @Override
+ public void writeToParcel(Parcel dest, int flags) {
+ dest.writeString(file);
+ dest.writeString(fileURL);
+ dest.writeString(boardDir);
+ }
+}