/*
 * Copyright (C) 2015 Contentful GmbH
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.contentful.vault;

public final class Asset extends Resource {
  private String url;

  private String mimeType;

  private Asset(Builder builder) {
    this.url = builder.url;
    this.mimeType = builder.mimeType;
  }

  public String url() {
    return url;
  }

  public String mimeType() {
    return mimeType;
  }

  static Builder builder() {
    return new Builder();
  }

  static class Builder {
    private Builder() {
    }

    private String url;

    private String mimeType;

    public Builder setUrl(String url) {
      this.url = url;
      return this;
    }

    public Builder setMimeType(String mimeType) {
      this.mimeType = mimeType;
      return this;
    }

    public Asset build() {
      return new Asset(this);
    }
  }
}

@@ -624,16 +624,73 @@
 vault;%0A%0A
+import android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0A
 public f
@@ -723,16 +723,38 @@
 esource 
+implements Parcelable 
 %7B%0A  priv
@@ -1428,16 +1428,16 @@
 (this);%0A
-
     %7D%0A  
@@ -1437,11 +1437,765 @@
    %7D%0A  %7D
+%0A%0A  // Parcelable%0A  public int describeContents() %7B%0A    return 0;%0A  %7D%0A%0A  public void writeToParcel(Parcel out, int flags) %7B%0A    out.writeString(remoteId());%0A    out.writeString(createdAt());%0A    out.writeString(updatedAt());%0A    out.writeString(url);%0A    out.writeString(mimeType);%0A  %7D%0A%0A  public static final Parcelable.Creator%3CAsset%3E CREATOR%0A      = new Parcelable.Creator%3CAsset%3E() %7B%0A    public Asset createFromParcel(Parcel in) %7B%0A      return new Asset(in);%0A    %7D%0A%0A    public Asset%5B%5D newArray(int size) %7B%0A      return new Asset%5Bsize%5D;%0A    %7D%0A  %7D;%0A%0A  private Asset(Parcel in) %7B%0A    setRemoteId(in.readString());%0A    setCreatedAt(in.readString());%0A    setUpdatedAt(in.readString());%0A    this.url = in.readString();%0A    this.mimeType = in.readString();%0A  %7D
 %0A%7D%0A

Make `Asset` implement `Parcelable`