// Path: app/src/main/java/pl/edu/radomski/navigator/params/Book.java
// public class Book implements Parcelable {
//     private String bookName;
//     private String author;
//     private int publishTime;
// 
//     public String getBookName() {
//         return bookName;
//     }
// 
//     public void setBookName(String bookName) {
//         this.bookName = bookName;
//     }
// 
//     public String getAuthor() {
//         return author;
//     }
// 
//     public void setAuthor(String author) {
//         this.author = author;
//     }
// 
//     public int getPublishTime() {
//         return publishTime;
//     }
// 
//     public void setPublishTime(int publishTime) {
//         this.publishTime = publishTime;
//     }
// 
//     public static final Parcelable.Creator<Book> CREATOR = new Creator<Book>() {
//         public Book createFromParcel(Parcel source) {
//             Book mBook = new Book();
//             mBook.bookName = source.readString();
//             mBook.author = source.readString();
//             mBook.publishTime = source.readInt();
//             return mBook;
//         }
// 
//         public Book[] newArray(int size) {
//             return new Book[size];
//         }
//     };
// 
//     public int describeContents() {
//         return 0;
//     }
// 
//     public void writeToParcel(Parcel parcel, int flags) {
//         parcel.writeString(bookName);
//         parcel.writeString(author);
//         parcel.writeInt(publishTime);
//     }
// 
//     @Override
//     public String toString() {
//         return "Book{" +
//                 "bookName='" + bookName + '\'' +
//                 ", author='" + author + '\'' +
//                 ", publishTime=" + publishTime +
//                 '}';
//     }
// }


import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import pl.edu.radomski.navigator.Navigable;
import pl.edu.radomski.navigator.Param;
import pl.edu.radomski.navigator.Result;
import pl.edu.radomski.navigator.params.Book;
/*
 * Navigator
 * Copyright (C)  2015 Adam Radomski
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
 * USA
 */

package pl.edu.radomski.navigator.examples;



/**
 * Created by adam on 8/24/15.
 */
@Navigable
public class ParamsForResultActivity extends BaseActivity {

    @Param(forResult = true)
    Integer integerParam;
    @Param(forResult = true)
    String stringParam;
    @Param(forResult = true)
// Path: app/src/main/java/pl/edu/radomski/navigator/params/Book.java
// public class Book implements Parcelable {
//     private String bookName;
//     private String author;
//     private int publishTime;
// 
//     public String getBookName() {
//         return bookName;
//     }
// 
//     public void setBookName(String bookName) {
//         this.bookName = bookName;
//     }
// 
//     public String getAuthor() {
//         return author;
//     }
// 
//     public void setAuthor(String author) {
//         this.author = author;
//     }
// 
//     public int getPublishTime() {
//         return publishTime;
//     }
// 
//     public void setPublishTime(int publishTime) {
//         this.publishTime = publishTime;
//     }
// 
//     public static final Parcelable.Creator<Book> CREATOR = new Creator<Book>() {
//         public Book createFromParcel(Parcel source) {
//             Book mBook = new Book();
//             mBook.bookName = source.readString();
//             mBook.author = source.readString();
//             mBook.publishTime = source.readInt();
//             return mBook;
//         }
// 
//         public Book[] newArray(int size) {
//             return new Book[size];
//         }
//     };
// 
//     public int describeContents() {
//         return 0;
//     }
// 
//     public void writeToParcel(Parcel parcel, int flags) {
//         parcel.writeString(bookName);
//         parcel.writeString(author);
//         parcel.writeInt(publishTime);
//     }
// 
//     @Override
//     public String toString() {
//         return "Book{" +
//                 "bookName='" + bookName + '\'' +
//                 ", author='" + author + '\'' +
//                 ", publishTime=" + publishTime +
//                 '}';
//     }
// }


// Path: app/src/main/java/pl/edu/radomski/navigator/examples/ParamsForResultActivity.java
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import pl.edu.radomski.navigator.Navigable;
import pl.edu.radomski.navigator.Param;
import pl.edu.radomski.navigator.Result;
import pl.edu.radomski.navigator.params.Book;

/*
 * Navigator
 * Copyright (C)  2015 Adam Radomski
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
 * USA
 */

package pl.edu.radomski.navigator.examples;



/**
 * Created by adam on 8/24/15.
 */
@Navigable
public class ParamsForResultActivity extends BaseActivity {

    @Param(forResult = true)
    Integer integerParam;
    @Param(forResult = true)
    String stringParam;
    @Param(forResult = true)
    Book parcelableParam;