Posts

Showing posts from October, 2018

API HIT Shutter APP

MainActivity.Java -  package com.example.krishandev.shutterappapihitexample; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.example.krishandev.shutterappapihitexample.contracter.GetProductsByCategoryContracter; import com.example.krishandev.shutterappapihitexample.controller.GetProductsByCategoryController; import com.example.krishandev.shutterappapihitexample.model.GetProductsByCategoryResponseModel; import java.util.List; public class MainActivity extends AppCompatActivity implements GetProductsByCategoryContracter.GetProductsByCategoryView{ public String categoryid = "5b9b37c76bcd3b08803dfa29" ; GetProductsByCategoryContracter.GetProductsByCategories getProductsByCategories ; @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout. activity_main ); getProductsByCategories = new GetProductsByCategoryController( this );