// Path: sample/src/main/java/com/tresorit/zerokitsdk/message/TabSelectMessage.java
// public class TabSelectMessage {
//     private final int tabId;
// 
//     public TabSelectMessage(int tabId) {
//         this.tabId = tabId;
//     }
// 
//     public int getTabId() {
//         return tabId;
//     }
// }


import android.databinding.BaseObservable;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.view.MenuItem;
import com.tresorit.zerokitsdk.message.TabSelectMessage;
import org.greenrobot.eventbus.EventBus;
import javax.inject.Inject;
package com.tresorit.zerokitsdk.viewmodel;





public class MainViewModel extends BaseObservable {

    @SuppressWarnings("WeakerAccess")
    public final BottomNavigationView.OnNavigationItemSelectedListener onNavigationItemSelectedListener;

    @Inject
    public MainViewModel(final EventBus eventBus) {
        onNavigationItemSelectedListener = new BottomNavigationView.OnNavigationItemSelectedListener() {
            @Override
            public boolean onNavigationItemSelected(@NonNull MenuItem item) {
// Path: sample/src/main/java/com/tresorit/zerokitsdk/message/TabSelectMessage.java
// public class TabSelectMessage {
//     private final int tabId;
// 
//     public TabSelectMessage(int tabId) {
//         this.tabId = tabId;
//     }
// 
//     public int getTabId() {
//         return tabId;
//     }
// }


// Path: sample/src/main/java/com/tresorit/zerokitsdk/viewmodel/MainViewModel.java
import android.databinding.BaseObservable;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.view.MenuItem;
import com.tresorit.zerokitsdk.message.TabSelectMessage;
import org.greenrobot.eventbus.EventBus;
import javax.inject.Inject;

package com.tresorit.zerokitsdk.viewmodel;





public class MainViewModel extends BaseObservable {

    @SuppressWarnings("WeakerAccess")
    public final BottomNavigationView.OnNavigationItemSelectedListener onNavigationItemSelectedListener;

    @Inject
    public MainViewModel(final EventBus eventBus) {
        onNavigationItemSelectedListener = new BottomNavigationView.OnNavigationItemSelectedListener() {
            @Override
            public boolean onNavigationItemSelected(@NonNull MenuItem item) {
                eventBus.post(new TabSelectMessage(item.getItemId()));