package scal.io.liger.model;

/**
 * Created by mnbogner on 10/10/14.
 */
public class FullMetadata {

    // class used for export, not serialized

    private int startTime;
    private int stopTime;
    private int volume;
    private String effect;
    private String type;
    private String medium;
    private String filePath;

    public FullMetadata (ClipMetadata cm, MediaFile mf) {
        this.startTime = cm.getStartTime();
        this.stopTime = cm.getStopTime();
        this.volume = cm.getVolume();
        this.effect = cm.getEffect();
        this.type = cm.getType();
        this.medium = mf.getMedium();
        this.filePath = mf.getPath();
    }

    public int getStartTime() {
        return startTime;
    }

    public void setStartTime(int startTime) {
        this.startTime = startTime;
    }

    public int getStopTime() {
        return stopTime;
    }

    public void setStopTime(int stopTime) {
        this.stopTime = stopTime;
    }

    public int getVolume() {
        return volume;
    }

    public void setVolume(int volume) {
        this.volume = volume;
    }

    public String getEffect() {
        return effect;
    }

    public void setEffect(String effect) {
        this.effect = effect;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMedium() {
        return medium;
    }

    public void setMedium(String medium) {
        this.medium = medium;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
}

@@ -23,16 +23,73 @@
 model;%0A%0A
+import android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0A
 /**%0A * C
@@ -150,16 +150,38 @@
 etadata 
+implements Parcelable 
 %7B%0A%0A    /
@@ -736,32 +736,1237 @@
 tPath();%0A    %7D%0A%0A
+    public FullMetadata(Parcel in) %7B%0A        String%5B%5D data = new String%5B7%5D;%0A%0A        in.readStringArray(data);%0A%0A        this.startTime = Integer.parseInt(data%5B0%5D);%0A        this.stopTime = Integer.parseInt(data%5B1%5D);%0A        this.volume = Integer.parseInt(data%5B2%5D);%0A        this.effect = data%5B3%5D;%0A        this.type = data%5B4%5D;%0A        this.medium = data%5B5%5D;%0A        this.filePath = data%5B6%5D;%0A    %7D%0A%0A    public static final Parcelable.Creator%3CFullMetadata%3E CREATOR%0A            = new Parcelable.Creator%3CFullMetadata%3E() %7B%0A        public FullMetadata createFromParcel(Parcel in) %7B%0A            return new FullMetadata(in);%0A        %7D%0A%0A        public FullMetadata%5B%5D newArray(int size) %7B%0A            return new FullMetadata%5Bsize%5D;%0A        %7D%0A    %7D;%0A%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel out, int flags) %7B%0A        String%5B%5D data = new String%5B7%5D;%0A        out.writeStringArray(new String%5B%5D%7B%0A                %22%22 + this.startTime,%0A                %22%22 + this.stopTime,%0A                %22%22 + this.volume,%0A                this.effect,%0A                this.type,%0A                this.medium,%0A                this.filePath%0A        %7D);%0A    %7D%0A%0A
     public int g

make FullMetadata implement Parcelable so we can pass it through intents