package scal.io.liger.model;

import com.google.gson.annotations.Expose;

/**
 * Created by josh on 2/13/15.
 */
public class AudioClip {
    @Expose private String position_clip_id; // can be null.  card id we are linked to either this or the next must have a value, but only one
    @Expose private int position_index; // can null
    @Expose private float volume; // 1.0 is full volume
    @Expose private boolean clip_span;  // how many clips it should try to span
    @Expose private boolean truncate; // should this play out past the clips its spans, or trim its end to match
    @Expose private boolean overlap; // if overlap the next clip or push it out, can we
    @Expose private boolean fill_repeat;  // repeat to fill if this audioclip is shorter than the clips it spans

//    public AudioClip() {}
}

@@ -23,16 +23,73 @@
 model;%0A%0A
+import android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0A
 import c
@@ -186,16 +186,38 @@
 dioClip 
+implements Parcelable 
 %7B%0A    @E
@@ -856,16 +856,1317 @@
  spans%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                this.position_clip_id,%0A                %22%22 + this.position_index,%0A                %22%22 + this.volume,%0A                (this.clip_span ? %221%22 : %220%22),%0A                (this.truncate ? %221%22 : %220%22),%0A                (this.overlap ? %221%22 : %220%22),%0A                (this.fill_repeat ? %221%22 : %220%22)%0A        %7D);%0A    %7D%0A%0A    public AudioClip(Parcel in) %7B%0A        String%5B%5D data = new String%5B7%5D;%0A%0A        in.readStringArray(data);%0A%0A        this.position_clip_id = data%5B0%5D;%0A        this.position_index = Integer.parseInt(data%5B1%5D);%0A        this.volume = Float.parseFloat(data%5B2%5D);%0A        this.clip_span = data%5B3%5D.equals(%221%22);%0A        this.truncate = data%5B4%5D.equals(%221%22);%0A        this.overlap = data%5B5%5D.equals(%221%22);%0A        this.fill_repeat = data%5B6%5D.equals(%221%22);%0A    %7D%0A%0A%0A    public static final Parcelable.Creator%3CAudioClip%3E CREATOR = new Parcelable.Creator%3CAudioClip%3E() %7B%0A        public AudioClip createFromParcel(Parcel in) %7B%0A            return new AudioClip(in);%0A        %7D%0A%0A        public AudioClip%5B%5D newArray(int size) %7B%0A            return new AudioClip%5Bsize%5D;%0A        %7D%0A    %7D;%0A%0A
 //    pu

make AudioClip parcelable