// Path: sample/src/main/java/com/tresorit/zerokitsdk/fragment/CreateTresorFragment.java
// public class CreateTresorFragment extends Fragment {
// 
//     @SuppressWarnings("WeakerAccess")
//     @Inject
//     CreateTresorViewModel viewModel;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         DaggerCreateTresorComponent.builder().applicationComponent(ZerokitApplication.get(getActivity()).component()).build().inject(this);
//         FragmentCreateTresorBinding binding = FragmentCreateTresorBinding.inflate(inflater, container, false);
//         binding.setViewmodel(viewModel);
//         return binding.getRoot();
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/module/CreateTresorModule.java
// @Module
// public class CreateTresorModule {
//     @Provides
//     @ActivityScope
//     public CreateTresorViewModel provideCreateTresorViewModel(Zerokit zerokit, AdminApi adminApi, EventBus eventBus) {
//         return new CreateTresorViewModel(zerokit, adminApi, eventBus);
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/viewmodel/CreateTresorViewModel.java
// public class CreateTresorViewModel extends BaseObservable {
// 
//     @SuppressWarnings("WeakerAccess")
//     public final View.OnClickListener clickListener;
//     @SuppressWarnings("WeakerAccess")
//     public final ObservableField<Boolean> inProgress;
//     @SuppressWarnings("WeakerAccess")
//     public final ObservableField<String> tresorId;
// 
//     private final Zerokit zerokit;
// 
//     @SuppressWarnings("WeakerAccess")
//     final AdminApi adminApi;
//     @SuppressWarnings("WeakerAccess")
//     final EventBus eventBus;
// 
//     @SuppressWarnings("WeakerAccess")
//     final Action<ResponseZerokitError> errorResponseHandlerSdk;
//     @SuppressWarnings("WeakerAccess")
//     final Action<ResponseAdminApiError> errorResponseHandlerAdminapi;
// 
// 
//     @Inject
//     public CreateTresorViewModel(final Zerokit zerokit, final AdminApi adminApi, final EventBus eventBus) {
//         this.zerokit = zerokit;
//         this.adminApi = adminApi;
//         this.eventBus = eventBus;
// 
// 
//         this.inProgress = new ObservableField<>(false);
//         this.tresorId = new ObservableField<>("");
//         this.clickListener = new View.OnClickListener() {
//             @Override
//             public void onClick(View v) {
//                 createTresor();
//                 inProgress.set(true);
//             }
//         };
// 
//         errorResponseHandlerSdk = new Action<ResponseZerokitError>() {
//             @Override
//             public void call(ResponseZerokitError errorResponse) {
//                 inProgress.set(false);
//                 eventBus.post(new ShowMessageMessage(errorResponse.toString()));
//             }
//         };
//         errorResponseHandlerAdminapi = new Action<ResponseAdminApiError>() {
//             @Override
//             public void call(ResponseAdminApiError errorResponse) {
//                 inProgress.set(false);
//                 eventBus.post(new ShowMessageMessage(errorResponse.toString()));
//             }
//         };
//     }
// 
//     @SuppressWarnings("WeakerAccess")
//     void createTresor() {
//         inProgress.set(true);
//         this.zerokit.createTresor().enqueue(new Action<String>() {
//             @Override
//             public void call(final String tresorId) {
//                 adminApi.createdTresor(tresorId).enqueue(new Action<Void>() {
//                     @Override
//                     public void call(Void res) {
//                         CreateTresorViewModel.this.inProgress.set(false);
//                         CreateTresorViewModel.this.tresorId.set("Tresor Id: " + tresorId);
//                         CreateTresorViewModel.this.eventBus.post(new CreateTresorFinishedMessage(tresorId));
//                     }
//                 }, errorResponseHandlerAdminapi);
//             }
//         }, errorResponseHandlerSdk);
//     }
// }


import com.tresorit.zerokitsdk.fragment.CreateTresorFragment;
import com.tresorit.zerokitsdk.module.CreateTresorModule;
import com.tresorit.zerokitsdk.scopes.ActivityScope;
import com.tresorit.zerokitsdk.viewmodel.CreateTresorViewModel;
import dagger.Component;
package com.tresorit.zerokitsdk.component;




@ActivityScope
@Component(
        modules = {
                CreateTresorModule.class
        },
        dependencies = {
                ApplicationComponent.class
        }
)
public interface CreateTresorComponent {
// Path: sample/src/main/java/com/tresorit/zerokitsdk/fragment/CreateTresorFragment.java
// public class CreateTresorFragment extends Fragment {
// 
//     @SuppressWarnings("WeakerAccess")
//     @Inject
//     CreateTresorViewModel viewModel;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         DaggerCreateTresorComponent.builder().applicationComponent(ZerokitApplication.get(getActivity()).component()).build().inject(this);
//         FragmentCreateTresorBinding binding = FragmentCreateTresorBinding.inflate(inflater, container, false);
//         binding.setViewmodel(viewModel);
//         return binding.getRoot();
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/module/CreateTresorModule.java
// @Module
// public class CreateTresorModule {
//     @Provides
//     @ActivityScope
//     public CreateTresorViewModel provideCreateTresorViewModel(Zerokit zerokit, AdminApi adminApi, EventBus eventBus) {
//         return new CreateTresorViewModel(zerokit, adminApi, eventBus);
//     }
// }
// 
// Path: sample/src/main/java/com/tresorit/zerokitsdk/viewmodel/CreateTresorViewModel.java
// public class CreateTresorViewModel extends BaseObservable {
// 
//     @SuppressWarnings("WeakerAccess")
//     public final View.OnClickListener clickListener;
//     @SuppressWarnings("WeakerAccess")
//     public final ObservableField<Boolean> inProgress;
//     @SuppressWarnings("WeakerAccess")
//     public final ObservableField<String> tresorId;
// 
//     private final Zerokit zerokit;
// 
//     @SuppressWarnings("WeakerAccess")
//     final AdminApi adminApi;
//     @SuppressWarnings("WeakerAccess")
//     final EventBus eventBus;
// 
//     @SuppressWarnings("WeakerAccess")
//     final Action<ResponseZerokitError> errorResponseHandlerSdk;
//     @SuppressWarnings("WeakerAccess")
//     final Action<ResponseAdminApiError> errorResponseHandlerAdminapi;
// 
// 
//     @Inject
//     public CreateTresorViewModel(final Zerokit zerokit, final AdminApi adminApi, final EventBus eventBus) {
//         this.zerokit = zerokit;
//         this.adminApi = adminApi;
//         this.eventBus = eventBus;
// 
// 
//         this.inProgress = new ObservableField<>(false);
//         this.tresorId = new ObservableField<>("");
//         this.clickListener = new View.OnClickListener() {
//             @Override
//             public void onClick(View v) {
//                 createTresor();
//                 inProgress.set(true);
//             }
//         };
// 
//         errorResponseHandlerSdk = new Action<ResponseZerokitError>() {
//             @Override
//             public void call(ResponseZerokitError errorResponse) {
//                 inProgress.set(false);
//                 eventBus.post(new ShowMessageMessage(errorResponse.toString()));
//             }
//         };
//         errorResponseHandlerAdminapi = new Action<ResponseAdminApiError>() {
//             @Override
//             public void call(ResponseAdminApiError errorResponse) {
//                 inProgress.set(false);
//                 eventBus.post(new ShowMessageMessage(errorResponse.toString()));
//             }
//         };
//     }
// 
//     @SuppressWarnings("WeakerAccess")
//     void createTresor() {
//         inProgress.set(true);
//         this.zerokit.createTresor().enqueue(new Action<String>() {
//             @Override
//             public void call(final String tresorId) {
//                 adminApi.createdTresor(tresorId).enqueue(new Action<Void>() {
//                     @Override
//                     public void call(Void res) {
//                         CreateTresorViewModel.this.inProgress.set(false);
//                         CreateTresorViewModel.this.tresorId.set("Tresor Id: " + tresorId);
//                         CreateTresorViewModel.this.eventBus.post(new CreateTresorFinishedMessage(tresorId));
//                     }
//                 }, errorResponseHandlerAdminapi);
//             }
//         }, errorResponseHandlerSdk);
//     }
// }


// Path: sample/src/main/java/com/tresorit/zerokitsdk/component/CreateTresorComponent.java
import com.tresorit.zerokitsdk.fragment.CreateTresorFragment;
import com.tresorit.zerokitsdk.module.CreateTresorModule;
import com.tresorit.zerokitsdk.scopes.ActivityScope;
import com.tresorit.zerokitsdk.viewmodel.CreateTresorViewModel;
import dagger.Component;

package com.tresorit.zerokitsdk.component;




@ActivityScope
@Component(
        modules = {
                CreateTresorModule.class
        },
        dependencies = {
                ApplicationComponent.class
        }
)
public interface CreateTresorComponent {
    void inject(CreateTresorFragment fragment);