// Path: mobile/src/main/java/io/ashdavies/eternity/Reporting.java
// public interface Reporting {
// 
//   void log(String message, Bundle bundle);
// }
// 
// Path: mobile/src/main/java/io/ashdavies/eternity/domain/Message.java
// @AutoValue
// @FirebaseValue
// public abstract class Message {
// 
//   public abstract String uuid();
//   public abstract String text();
//   public abstract Author author();
//   public abstract long created();
// 
//   @Nullable
//   public abstract Message original();
// 
//   public Object toFirebaseValue() {
//     return new AutoValue_Message.FirebaseValue(this);
//   }
// 
//   private static Builder builder() {
//     return new AutoValue_Message.Builder()
//         .uuid(UUID.randomUUID().toString())
//         .created(System.currentTimeMillis());
//   }
// 
//   public static Builder from(String text) {
//     return builder().text(text);
//   }
// 
//   public static Builder from(Message message) {
//     return from(message.text()).original(message);
//   }
// 
//   public static Message create(DataSnapshot snapshot) {
//     return snapshot.getValue(AutoValue_Message.FirebaseValue.class).toAutoValue();
//   }
// 
//   @AutoValue.Builder
//   public abstract static class Builder {
// 
//     public abstract Builder uuid(String uuid);
//     public abstract Builder text(String text);
//     public abstract Builder author(Author author);
//     public abstract Builder created(long created);
// 
//     public abstract Builder original(@Nullable Message message);
// 
//     public abstract Message build();
//   }
// }


import android.os.Bundle;
import android.support.annotation.NonNull;
import com.google.firebase.analytics.FirebaseAnalytics;
import io.ashdavies.commons.util.BundleUtils;
import io.ashdavies.eternity.Reporting;
import io.ashdavies.eternity.domain.Message;
import io.reactivex.functions.Consumer;
import javax.inject.Inject;
package io.ashdavies.eternity.chat;


class MessageReporting implements Consumer<Message> {

  private static final String EVENT_FAVOURITE = "favourite";
  private static final String EVENT_REPOST = "repost";
  private static final String EVENT_POST = "post";

  private static final String PARAMETER_TEXT = "text";

// Path: mobile/src/main/java/io/ashdavies/eternity/Reporting.java
// public interface Reporting {
// 
//   void log(String message, Bundle bundle);
// }
// 
// Path: mobile/src/main/java/io/ashdavies/eternity/domain/Message.java
// @AutoValue
// @FirebaseValue
// public abstract class Message {
// 
//   public abstract String uuid();
//   public abstract String text();
//   public abstract Author author();
//   public abstract long created();
// 
//   @Nullable
//   public abstract Message original();
// 
//   public Object toFirebaseValue() {
//     return new AutoValue_Message.FirebaseValue(this);
//   }
// 
//   private static Builder builder() {
//     return new AutoValue_Message.Builder()
//         .uuid(UUID.randomUUID().toString())
//         .created(System.currentTimeMillis());
//   }
// 
//   public static Builder from(String text) {
//     return builder().text(text);
//   }
// 
//   public static Builder from(Message message) {
//     return from(message.text()).original(message);
//   }
// 
//   public static Message create(DataSnapshot snapshot) {
//     return snapshot.getValue(AutoValue_Message.FirebaseValue.class).toAutoValue();
//   }
// 
//   @AutoValue.Builder
//   public abstract static class Builder {
// 
//     public abstract Builder uuid(String uuid);
//     public abstract Builder text(String text);
//     public abstract Builder author(Author author);
//     public abstract Builder created(long created);
// 
//     public abstract Builder original(@Nullable Message message);
// 
//     public abstract Message build();
//   }
// }


// Path: mobile/src/main/java/io/ashdavies/eternity/chat/MessageReporting.java
import android.os.Bundle;
import android.support.annotation.NonNull;
import com.google.firebase.analytics.FirebaseAnalytics;
import io.ashdavies.commons.util.BundleUtils;
import io.ashdavies.eternity.Reporting;
import io.ashdavies.eternity.domain.Message;
import io.reactivex.functions.Consumer;
import javax.inject.Inject;

package io.ashdavies.eternity.chat;


class MessageReporting implements Consumer<Message> {

  private static final String EVENT_FAVOURITE = "favourite";
  private static final String EVENT_REPOST = "repost";
  private static final String EVENT_POST = "post";

  private static final String PARAMETER_TEXT = "text";

  private final Reporting reporting;