package com.dlsu.getbetter.getbetter.objects;

import java.io.File;

/**
 * Created by mikedayupay on 21/02/2016.
 * GetBetter 2016
 */
public class Attachment {

    private int caseRecordId;
    private String attachmentPath;
    private String attachmentDescription;
    private int attachmentType;
    private String uploadedDate;
    private int uploadedBy;
    private File fileName;

    public Attachment(String attachmentPath, String attachmentDescription, int attachmentType, String uploadedDate) {
        this.attachmentPath = attachmentPath;
        this.attachmentDescription = attachmentDescription;
        this.attachmentType = attachmentType;
        this.uploadedDate = uploadedDate;
    }

    public Attachment(String attachmentPath, String attachmentDescription) {
        this.attachmentPath = attachmentPath;
        this.attachmentDescription = attachmentDescription;
    }

    public Attachment(int caseRecordId, String attachmentPath, String attachmentDescription,
                      int attachmentType, String uploadedDate, int uploadedBy) {
        this.caseRecordId = caseRecordId;
        this.attachmentPath = attachmentPath;
        this.attachmentDescription = attachmentDescription;
        this.attachmentType = attachmentType;
        this.uploadedDate = uploadedDate;
        this.uploadedBy = uploadedBy;
    }

    public Attachment(String attachmentPath, File fileName) {
        this.attachmentPath = attachmentPath;
        this.fileName = fileName;
    }

    public String getAttachmentPath() {
        return attachmentPath;
    }

    public void setAttachmentPath(String attachmentPath) {
        this.attachmentPath = attachmentPath;
    }

    public String getAttachmentDescription() {
        return attachmentDescription;
    }

    public void setAttachmentDescription(String attachmentDescription) {
        this.attachmentDescription = attachmentDescription;
    }

    public int getAttachmentType() {
        return attachmentType;
    }

    public void setAttachmentType(int attachmentType) {
        this.attachmentType = attachmentType;
    }

    public int getCaseRecordId() {
        return caseRecordId;
    }

    public void setCaseRecordId(int caseRecordId) {
        this.caseRecordId = caseRecordId;
    }

    public String getUploadedDate() {
        return uploadedDate;
    }

    public void setUploadedDate(String uploadedDate) {
        this.uploadedDate = uploadedDate;
    }

    public File getFileName() {
        return fileName;
    }

    public void setFileName(File fileName) {
        this.fileName = fileName;
    }

    public int getUploadedBy() {
        return uploadedBy;
    }

    public void setUploadedBy(int uploadedBy) {
        this.uploadedBy = uploadedBy;
    }
}

@@ -1340,32 +1340,433 @@
 oadedBy;%0A    %7D%0A%0A
+    public Attachment(int caseRecordId, String attachmentPath, String attachmentDescription,%0A                      int attachmentType, String uploadedDate) %7B%0A        this.caseRecordId = caseRecordId;%0A        this.attachmentPath = attachmentPath;%0A        this.attachmentDescription = attachmentDescription;%0A        this.attachmentType = attachmentType;%0A        this.uploadedDate = uploadedDate;%0A    %7D%0A%0A
     public Attac

add new constructor