/*
 * Copyright 2015-2016 Red Hat, Inc. and/or its affiliates
 * and other contributors as indicated by the @author tags.
 *
 * 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 org.hawkular.client.android.backend.model;

import org.jboss.aerogear.android.core.RecordId;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by anuj on 7/6/16.
 */
public class Feed implements Parcelable {

    @RecordId
    @SerializedName("id")
    private String id;

    @SerializedName("name")
    private String name;

    @SerializedName("path")
    private String path;

    public Feed(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPath() {
        return path;
    }

    public void setId(String id) {
        this.id = id;
    }

    public static Creator<Feed> CREATOR = new Creator<Feed>() {
        @Override
        public Feed createFromParcel(Parcel parcel) {
            return new Feed(parcel);
        }

        @Override
        public Feed[] newArray(int size) {
            return new Feed[size];
        }
    };

    private Feed(Parcel parcel) {
        this.id = parcel.readString();
        this.name = parcel.readString();
        this.path = parcel.readString();
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        parcel.writeString(id);
        parcel.writeString(name);
        parcel.writeString(path);
    }

    @Override
    public int describeContents() {
        return 0;
    }

}
@@ -17,17 +17,17 @@
 2015-201
-6
+7
  Red Hat
@@ -1036,62 +1036,8 @@
 d;%0A%0A
-    @SerializedName(%22name%22)%0A    private String name;%0A%0A
     
@@ -1115,21 +1115,8 @@
 g id
-, String name
 ) %7B%0A
@@ -1141,34 +1141,8 @@
 id;%0A
-        this.name = name;%0A
     
@@ -1202,66 +1202,8 @@
  %7D%0A%0A
-    public String getName() %7B%0A        return name;%0A    %7D%0A%0A
     
@@ -1695,49 +1695,8 @@
 ();%0A
-        this.name = parcel.readString();%0A
     
@@ -1847,42 +1847,8 @@
 d);%0A
-        parcel.writeString(name);%0A
     

Remove name field from Feed model