/**
*
This file is part of the "Get There!" application for android developed
for the SFWR ENG 4G06 Capstone course in the 2014/2015 Fall/Winter
terms at McMaster University.
Copyright (C) 2015 M. Fluder, T. Miele, N. Mio, M. Ngo, and J. Rabaya
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.capstone.transit.trans_it;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by Thomas on 4/22/2015.
*/
public class Step implements Parcelable{
private String mDistance;
private String mDuration;
private String mHtmlInstructions;
public String getDistance() {
return mDistance;
}
public void setDistance(String distance) {
mDistance = distance;
}
public String getDuration() {
return mDuration;
}
public void setDuration(String duration) {
mDuration = duration;
}
public String getHtmlInstructions() {
return mHtmlInstructions;
}
public void setHtmlInstructions(String htmlInstructions) {
mHtmlInstructions = htmlInstructions;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(mDistance);
dest.writeString(mHtmlInstructions);
dest.writeString(mDuration);
}
private Step(Parcel in){
mDistance = in.readString();
mHtmlInstructions = in.readString();
mDuration = in.readString();
}
public Step(){}
public static final Creator<Step> CREATOR = new Creator<Step>() {
@Override
public Step createFromParcel(Parcel source) {
return new Step(source);
}
@Override
public Step[] newArray(int size) {
return new Step[size];
}
};
}