// Path: vapor-app/src/main/java/com/tevinjeffrey/vapor/events/DatabaseUpdateEvent.java
// public class DatabaseUpdateEvent {
// }
// 
// Path: vapor-app/src/main/java/com/tevinjeffrey/vapor/events/RefreshEvent.java
// public class RefreshEvent {
// }
// 
// Path: vapor-app/src/main/java/com/tevinjeffrey/vapor/events/UploadEvent.java
// public class UploadEvent {
//     private Uri uri;
//     private CloudAppItem item;
// 
//     public UploadEvent(Uri uri, CloudAppItem item) {
//         this.uri = uri;
//         this.item = item;
//     }
// 
//     public UploadEvent() {
//     }
// 
//     @Nullable
//     public Uri getUri() {
//         return uri;
//     }
// 
//     public CloudAppItem getItem() {
//         return item;
//     }
// }
// 
// Path: vapor-app/src/main/java/com/tevinjeffrey/vapor/okcloudapp/model/CloudAppItem.java
// public enum ItemType {
//     ALL, DELETED, AUDIO, BOOKMARK, IMAGE, UNKNOWN, VIDEO, ARCHIVE, TEXT
// }


import com.squareup.otto.Bus;
import com.squareup.otto.Subscribe;
import com.tevinjeffrey.vapor.events.DatabaseUpdateEvent;
import com.tevinjeffrey.vapor.events.RefreshEvent;
import com.tevinjeffrey.vapor.events.UploadEvent;
import com.tevinjeffrey.vapor.okcloudapp.model.CloudAppItem.ItemType;
import javax.inject.Inject;
package com.tevinjeffrey.vapor.ui.files.fragments.presenters;



public class VideoPresenter extends BaseFilesPresenterImpl {
    public VideoPresenter() {
        itemType = ItemType.VIDEO;
    }
    @Inject
    Bus bus;

    @Subscribe
    public void dbUpdate(DatabaseUpdateEvent event) {
        loadData(false, false, true);
    }

    @Subscribe
    public void onUploadEvent(UploadEvent event) {
        loadData(false, true, false);
    }

    @Subscribe
    public void onRefreshEvent(RefreshEvent event) {
        if (getView() != null && getView().isVisibleInPager()) {
            loadData(true, true, false);
        }
    }
    @Override
    public void onPause() {
        super.onPause();
        bus.unregister(this);
    }

// Path: vapor-app/src/main/java/com/tevinjeffrey/vapor/events/DatabaseUpdateEvent.java
// public class DatabaseUpdateEvent {
// }
// 
// Path: vapor-app/src/main/java/com/tevinjeffrey/vapor/events/RefreshEvent.java
// public class RefreshEvent {
// }
// 
// Path: vapor-app/src/main/java/com/tevinjeffrey/vapor/events/UploadEvent.java
// public class UploadEvent {
//     private Uri uri;
//     private CloudAppItem item;
// 
//     public UploadEvent(Uri uri, CloudAppItem item) {
//         this.uri = uri;
//         this.item = item;
//     }
// 
//     public UploadEvent() {
//     }
// 
//     @Nullable
//     public Uri getUri() {
//         return uri;
//     }
// 
//     public CloudAppItem getItem() {
//         return item;
//     }
// }
// 
// Path: vapor-app/src/main/java/com/tevinjeffrey/vapor/okcloudapp/model/CloudAppItem.java
// public enum ItemType {
//     ALL, DELETED, AUDIO, BOOKMARK, IMAGE, UNKNOWN, VIDEO, ARCHIVE, TEXT
// }


// Path: vapor-app/src/main/java/com/tevinjeffrey/vapor/ui/files/fragments/presenters/VideoPresenter.java
import com.squareup.otto.Bus;
import com.squareup.otto.Subscribe;
import com.tevinjeffrey.vapor.events.DatabaseUpdateEvent;
import com.tevinjeffrey.vapor.events.RefreshEvent;
import com.tevinjeffrey.vapor.events.UploadEvent;
import com.tevinjeffrey.vapor.okcloudapp.model.CloudAppItem.ItemType;
import javax.inject.Inject;

package com.tevinjeffrey.vapor.ui.files.fragments.presenters;



public class VideoPresenter extends BaseFilesPresenterImpl {
    public VideoPresenter() {
        itemType = ItemType.VIDEO;
    }
    @Inject
    Bus bus;

    @Subscribe
    public void dbUpdate(DatabaseUpdateEvent event) {
        loadData(false, false, true);
    }

    @Subscribe
    public void onUploadEvent(UploadEvent event) {
        loadData(false, true, false);
    }

    @Subscribe
    public void onRefreshEvent(RefreshEvent event) {
        if (getView() != null && getView().isVisibleInPager()) {
            loadData(true, true, false);
        }
    }
    @Override
    public void onPause() {
        super.onPause();
        bus.unregister(this);
    }

    @Override