// Path: app/src/main/java/com/ge/protein/data/model/Shot.java
// @AutoValue
// public abstract class Shot implements Parcelable {
// 
//     public abstract long id();
// 
//     public abstract String title();
// 
//     @Nullable
//     public abstract String description();
// 
//     public abstract int width();
// 
//     public abstract int height();
// 
//     public abstract Images images();
// 
//     public abstract long views_count();
// 
//     public abstract long likes_count();
// 
//     public abstract long comments_count();
// 
//     public abstract long attachments_count();
// 
//     public abstract long rebounds_count();
// 
//     public abstract long buckets_count();
// 
//     public abstract Date created_at();
// 
//     public abstract Date updated_at();
// 
//     public abstract String html_url();
// 
//     public abstract String attachments_url();
// 
//     public abstract String buckets_url();
// 
//     public abstract String comments_url();
// 
//     public abstract String likes_url();
// 
//     public abstract String projects_url();
// 
//     public abstract String rebounds_url();
// 
//     public abstract boolean animated();
// 
//     public abstract List<String> tags();
// 
//     @Nullable
//     public abstract User user();
// 
//     @Nullable
//     public abstract Team team();
// 
//     public abstract Shot withUser(User user);
// 
//     public abstract Shot withLikesCount(long likes_count);
// 
//     public static TypeAdapter<Shot> typeAdapter(Gson gson) {
//         return new AutoValue_Shot.GsonTypeAdapter(gson).nullSafe();
//     }
// }
// 
// Path: app/src/main/java/com/ge/protein/util/RxBus.java
// public class RxBus {
// 
//     private RxBus() {}
// 
//     private static final RxBus rxBus = new RxBus();
// 
//     public static RxBus getInstance() {
//         return rxBus;
//     }
// 
//     private PublishSubject<Object> subject = PublishSubject.create();
// 
//     public void post(Object o) {
//         subject.onNext(o);
//     }
// 
//     public <T> Observable<T> toObservable(Class<T> eventType) {
//         return subject.ofType(eventType);
//     }
// }
// 
// Path: app/src/main/java/com/ge/protein/util/Preconditions.java
// public static <T> T checkNotNull(T reference, @Nullable Object errorMessage) {
//     if(reference == null) {
//         throw new NullPointerException(String.valueOf(errorMessage));
//     } else {
//         return reference;
//     }
// }


import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.ge.protein.R;
import com.ge.protein.data.model.Shot;
import com.ge.protein.util.RxBus;
import com.trello.rxlifecycle2.LifecycleProvider;
import com.trello.rxlifecycle2.android.FragmentEvent;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import static com.ge.protein.util.Preconditions.checkNotNull;
/*
 * Copyright 2017 Jiaheng Ge
 *
 * 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.ge.protein.comment.post;





public class CommentPostPresenter implements CommentPostContract.Presenter {

    @NonNull
    private CommentPostContract.View view;
    private CommentPostRepository repository;
    @NonNull
// Path: app/src/main/java/com/ge/protein/data/model/Shot.java
// @AutoValue
// public abstract class Shot implements Parcelable {
// 
//     public abstract long id();
// 
//     public abstract String title();
// 
//     @Nullable
//     public abstract String description();
// 
//     public abstract int width();
// 
//     public abstract int height();
// 
//     public abstract Images images();
// 
//     public abstract long views_count();
// 
//     public abstract long likes_count();
// 
//     public abstract long comments_count();
// 
//     public abstract long attachments_count();
// 
//     public abstract long rebounds_count();
// 
//     public abstract long buckets_count();
// 
//     public abstract Date created_at();
// 
//     public abstract Date updated_at();
// 
//     public abstract String html_url();
// 
//     public abstract String attachments_url();
// 
//     public abstract String buckets_url();
// 
//     public abstract String comments_url();
// 
//     public abstract String likes_url();
// 
//     public abstract String projects_url();
// 
//     public abstract String rebounds_url();
// 
//     public abstract boolean animated();
// 
//     public abstract List<String> tags();
// 
//     @Nullable
//     public abstract User user();
// 
//     @Nullable
//     public abstract Team team();
// 
//     public abstract Shot withUser(User user);
// 
//     public abstract Shot withLikesCount(long likes_count);
// 
//     public static TypeAdapter<Shot> typeAdapter(Gson gson) {
//         return new AutoValue_Shot.GsonTypeAdapter(gson).nullSafe();
//     }
// }
// 
// Path: app/src/main/java/com/ge/protein/util/RxBus.java
// public class RxBus {
// 
//     private RxBus() {}
// 
//     private static final RxBus rxBus = new RxBus();
// 
//     public static RxBus getInstance() {
//         return rxBus;
//     }
// 
//     private PublishSubject<Object> subject = PublishSubject.create();
// 
//     public void post(Object o) {
//         subject.onNext(o);
//     }
// 
//     public <T> Observable<T> toObservable(Class<T> eventType) {
//         return subject.ofType(eventType);
//     }
// }
// 
// Path: app/src/main/java/com/ge/protein/util/Preconditions.java
// public static <T> T checkNotNull(T reference, @Nullable Object errorMessage) {
//     if(reference == null) {
//         throw new NullPointerException(String.valueOf(errorMessage));
//     } else {
//         return reference;
//     }
// }


// Path: app/src/main/java/com/ge/protein/comment/post/CommentPostPresenter.java
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.ge.protein.R;
import com.ge.protein.data.model.Shot;
import com.ge.protein.util.RxBus;
import com.trello.rxlifecycle2.LifecycleProvider;
import com.trello.rxlifecycle2.android.FragmentEvent;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import static com.ge.protein.util.Preconditions.checkNotNull;

/*
 * Copyright 2017 Jiaheng Ge
 *
 * 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.ge.protein.comment.post;





public class CommentPostPresenter implements CommentPostContract.Presenter {

    @NonNull
    private CommentPostContract.View view;
    private CommentPostRepository repository;
    @NonNull
    private Shot shot;