// Path: app/src/main/java/com/iph/directly/domain/model/Feedback.java
// public class Feedback {
//     private String text;
// 
//     public Feedback(String text) {
//         this.text = text;
//     }
// 
//     public String getText() {
//         return text;
//     }
// 
//     public void setText(String text) {
//         this.text = text;
//     }
// }


import android.support.annotation.NonNull;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.iph.directly.domain.model.Feedback;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import rx.Observable;
package com.iph.directly.domain;





/**
 * Created by vanya on 11/5/2016.
 */

public class FeedbackRepositoryImpl implements FeedbackRepository {
    private static final String FEEDBACK_TREE = "feedbacks";
    private DatabaseReference databaseReference;
    private SimpleDateFormat dateFormat;

    public FeedbackRepositoryImpl() {
        databaseReference = FirebaseDatabase.getInstance().getReference();
        dateFormat = new SimpleDateFormat("dd MM yyyy HH:mm:ss", Locale.getDefault());
    }

    @Override
// Path: app/src/main/java/com/iph/directly/domain/model/Feedback.java
// public class Feedback {
//     private String text;
// 
//     public Feedback(String text) {
//         this.text = text;
//     }
// 
//     public String getText() {
//         return text;
//     }
// 
//     public void setText(String text) {
//         this.text = text;
//     }
// }


// Path: app/src/prod/java/com/iph/directly/domain/FeedbackRepositoryImpl.java
import android.support.annotation.NonNull;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.iph.directly.domain.model.Feedback;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import rx.Observable;

package com.iph.directly.domain;





/**
 * Created by vanya on 11/5/2016.
 */

public class FeedbackRepositoryImpl implements FeedbackRepository {
    private static final String FEEDBACK_TREE = "feedbacks";
    private DatabaseReference databaseReference;
    private SimpleDateFormat dateFormat;

    public FeedbackRepositoryImpl() {
        databaseReference = FirebaseDatabase.getInstance().getReference();
        dateFormat = new SimpleDateFormat("dd MM yyyy HH:mm:ss", Locale.getDefault());
    }

    @Override
    public Observable<Feedback> putFeedback(String userId, String text) {