Skip to content

Instantly share code, notes, and snippets.

@Adamwaheed
Created February 20, 2016 15:04
Show Gist options
  • Save Adamwaheed/69ef0e2b686e247db4a1 to your computer and use it in GitHub Desktop.
Save Adamwaheed/69ef0e2b686e247db4a1 to your computer and use it in GitHub Desktop.
BlockModel
package mv.com.jps.alerm.Block;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
/**
* Created by amin on 2/20/16.
*/
public class Block {
@SerializedName("id")
@Expose
public int id;
@SerializedName("name")
@Expose
public String name;
@SerializedName("code")
@Expose
public String code;
@SerializedName("zone_id")
@Expose
public int zone_id;
@SerializedName("columns")
@Expose
public int columns;
@SerializedName("bays")
@Expose
public int bays;
@SerializedName("tiers")
@Expose
public int tiers;
@SerializedName("created_at")
@Expose
public int created_at;
@SerializedName("updated_at")
@Expose
public int updated_at;
@SerializedName("Slots")
@Expose
public ArrayList<Slots> slots;
public Block(int id, String name, String code, int zone_id, int columns, int bays, int tiers, int created_at, int updated_at, ArrayList<Slots> slots) {
this.id = id;
this.name = name;
this.code = code;
this.zone_id = zone_id;
this.columns = columns;
this.bays = bays;
this.tiers = tiers;
this.created_at = created_at;
this.updated_at = updated_at;
this.slots = slots;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public int getZone_id() {
return zone_id;
}
public void setZone_id(int zone_id) {
this.zone_id = zone_id;
}
public int getColumns() {
return columns;
}
public void setColumns(int columns) {
this.columns = columns;
}
public int getBays() {
return bays;
}
public void setBays(int bays) {
this.bays = bays;
}
public int getTiers() {
return tiers;
}
public void setTiers(int tiers) {
this.tiers = tiers;
}
public int getCreated_at() {
return created_at;
}
public void setCreated_at(int created_at) {
this.created_at = created_at;
}
public int getUpdated_at() {
return updated_at;
}
public void setUpdated_at(int updated_at) {
this.updated_at = updated_at;
}
public List<Slots> getSlots() {
return slots;
}
public void setSlots(ArrayList<Slots> slots) {
this.slots = slots;
}
}
package mv.com.jps.alerm.Block;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by amin on 2/20/16.
*/
public class ContainerType {
@SerializedName("code")
@Expose
public String code;
@SerializedName("name")
@Expose
public String name;
public ContainerType(String code, String name) {
this.code = code;
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
}
package mv.com.jps.alerm.Block;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by amin on 2/20/16.
*/
public class Data {
@SerializedName("id")
@Expose
public int id;
@SerializedName("block_id")
@Expose
public int block_id;
@SerializedName("column")
@Expose
public int column;
@SerializedName("bay")
@Expose
public int bay;
@SerializedName("tier")
@Expose
public int tier;
@SerializedName("lock")
@Expose
public int lock;
@SerializedName("created_at")
@Expose
public String created_at;
@SerializedName("updated_at")
@Expose
public String updated_at;
@SerializedName("locations")
@Expose
public Location locations;
@SerializedName("availalbe")
@Expose
public int availalbe;
public Data(int id, int block_id, int column, int bay, int tier, int lock, String created_at, String updated_at, Location locations, int availalbe) {
this.id = id;
this.block_id = block_id;
this.column = column;
this.bay = bay;
this.tier = tier;
this.lock = lock;
this.created_at = created_at;
this.updated_at = updated_at;
this.locations = locations;
this.availalbe = availalbe;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getBlock_id() {
return block_id;
}
public void setBlock_id(int block_id) {
this.block_id = block_id;
}
public int getColumn() {
return column;
}
public void setColumn(int column) {
this.column = column;
}
public int getBay() {
return bay;
}
public void setBay(int bay) {
this.bay = bay;
}
public int getTier() {
return tier;
}
public void setTier(int tier) {
this.tier = tier;
}
public int getLock() {
return lock;
}
public void setLock(int lock) {
this.lock = lock;
}
public String getCreated_at() {
return created_at;
}
public void setCreated_at(String created_at) {
this.created_at = created_at;
}
public String getUpdated_at() {
return updated_at;
}
public void setUpdated_at(String updated_at) {
this.updated_at = updated_at;
}
public Location getLocations() {
return locations;
}
public void setLocations(Location locations) {
this.locations = locations;
}
public int getAvailalbe() {
return availalbe;
}
public void setAvailalbe(int availalbe) {
this.availalbe = availalbe;
}
}
package mv.com.jps.alerm.Block;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by amin on 2/20/16.
*/
public class InwardList {
@SerializedName("id")
@Expose
public int id;
@SerializedName("container_id")
@Expose
public int container_id;
@SerializedName("container_weight")
@Expose
public int container_weight;
@SerializedName("container_temperature")
@Expose
public int container_temperature;
@SerializedName("container_term")
@Expose
public int container_term;
@SerializedName("emptied_date")
@Expose
public String emptied_date;
@SerializedName("voyage_id")
@Expose
public int voyage_id;
@SerializedName("container_status_id")
@Expose
public int container_status_id;
@SerializedName("loading_port")
@Expose
public String loading_port;
@SerializedName("destination_port")
@Expose
public String destination_port;
@SerializedName("container_type_id")
@Expose
public int container_type_id;
@SerializedName("size")
@Expose
public int size;
@SerializedName("not_empty")
@Expose
public int not_empty;
@SerializedName("empty_date")
@Expose
public String empty_date;
@SerializedName("eta")
@Expose
public String eta;
@SerializedName("vessel_name")
@Expose
public String vessel_name;
@SerializedName("status")
@Expose
public int status;
@SerializedName("tallied_date")
@Expose
public String tallied_date;
@SerializedName("pluggable")
@Expose
public int pluggable;
@SerializedName("plugged")
@Expose
public int plugged;
@SerializedName("last_cargo_action")
@Expose
public String last_cargo_action;
@SerializedName("last_cargo_action_id")
@Expose
public String last_cargo_action_id;
@SerializedName("container_no")
@Expose
public int container_no;
@SerializedName("type_name")
@Expose
public ContainerType type_name;
public InwardList(int id, int container_id, int container_weight, int container_temperature, int container_term, String emptied_date, int voyage_id, int container_status_id, String loading_port, String destination_port, int container_type_id, int size, int not_empty, String empty_date, String eta, String vessel_name, int status, String tallied_date, int pluggable, int plugged, String last_cargo_action, String last_cargo_action_id, int container_no, ContainerType type_name) {
this.id = id;
this.container_id = container_id;
this.container_weight = container_weight;
this.container_temperature = container_temperature;
this.container_term = container_term;
this.emptied_date = emptied_date;
this.voyage_id = voyage_id;
this.container_status_id = container_status_id;
this.loading_port = loading_port;
this.destination_port = destination_port;
this.container_type_id = container_type_id;
this.size = size;
this.not_empty = not_empty;
this.empty_date = empty_date;
this.eta = eta;
this.vessel_name = vessel_name;
this.status = status;
this.tallied_date = tallied_date;
this.pluggable = pluggable;
this.plugged = plugged;
this.last_cargo_action = last_cargo_action;
this.last_cargo_action_id = last_cargo_action_id;
this.container_no = container_no;
this.type_name = type_name;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getContainer_id() {
return container_id;
}
public void setContainer_id(int container_id) {
this.container_id = container_id;
}
public int getContainer_weight() {
return container_weight;
}
public void setContainer_weight(int container_weight) {
this.container_weight = container_weight;
}
public int getContainer_temperature() {
return container_temperature;
}
public void setContainer_temperature(int container_temperature) {
this.container_temperature = container_temperature;
}
public int getContainer_term() {
return container_term;
}
public void setContainer_term(int container_term) {
this.container_term = container_term;
}
public String getEmptied_date() {
return emptied_date;
}
public void setEmptied_date(String emptied_date) {
this.emptied_date = emptied_date;
}
public int getVoyage_id() {
return voyage_id;
}
public void setVoyage_id(int voyage_id) {
this.voyage_id = voyage_id;
}
public int getContainer_status_id() {
return container_status_id;
}
public void setContainer_status_id(int container_status_id) {
this.container_status_id = container_status_id;
}
public String getLoading_port() {
return loading_port;
}
public void setLoading_port(String loading_port) {
this.loading_port = loading_port;
}
public String getDestination_port() {
return destination_port;
}
public void setDestination_port(String destination_port) {
this.destination_port = destination_port;
}
public int getContainer_type_id() {
return container_type_id;
}
public void setContainer_type_id(int container_type_id) {
this.container_type_id = container_type_id;
}
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public int getNot_empty() {
return not_empty;
}
public void setNot_empty(int not_empty) {
this.not_empty = not_empty;
}
public String getEmpty_date() {
return empty_date;
}
public void setEmpty_date(String empty_date) {
this.empty_date = empty_date;
}
public String getEta() {
return eta;
}
public void setEta(String eta) {
this.eta = eta;
}
public String getVessel_name() {
return vessel_name;
}
public void setVessel_name(String vessel_name) {
this.vessel_name = vessel_name;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getTallied_date() {
return tallied_date;
}
public void setTallied_date(String tallied_date) {
this.tallied_date = tallied_date;
}
public int getPluggable() {
return pluggable;
}
public void setPluggable(int pluggable) {
this.pluggable = pluggable;
}
public int getPlugged() {
return plugged;
}
public void setPlugged(int plugged) {
this.plugged = plugged;
}
public String getLast_cargo_action() {
return last_cargo_action;
}
public void setLast_cargo_action(String last_cargo_action) {
this.last_cargo_action = last_cargo_action;
}
public String getLast_cargo_action_id() {
return last_cargo_action_id;
}
public void setLast_cargo_action_id(String last_cargo_action_id) {
this.last_cargo_action_id = last_cargo_action_id;
}
public int getContainer_no() {
return container_no;
}
public void setContainer_no(int container_no) {
this.container_no = container_no;
}
public ContainerType getType_name() {
return type_name;
}
public void setType_name(ContainerType type_name) {
this.type_name = type_name;
}
}
package mv.com.jps.alerm.Block;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by amin on 2/20/16.
*/
public class Location {
@SerializedName("id")
@Expose
public int id;
@SerializedName("inward_list_id")
@Expose
public int inward_list_id;
@SerializedName("slot_id")
@Expose
public int slot_id;
@SerializedName("status")
@Expose
public int status;
@SerializedName("shifting_request")
@Expose
public int shifting_request;
@SerializedName("created_at")
@Expose
public String created_at;
@SerializedName("updated_at")
@Expose
public String updated_at;
@SerializedName("block_id")
@Expose
public int block_id;
@SerializedName("zone_id")
@Expose
public int zone_id;
@SerializedName("inward_list")
@Expose
public InwardList inward_list;
public Location(int id, int inward_list_id, int slot_id, int status, int shifting_request, String created_at, String updated_at, int block_id, int zone_id, InwardList inward_list) {
this.id = id;
this.inward_list_id = inward_list_id;
this.slot_id = slot_id;
this.status = status;
this.shifting_request = shifting_request;
this.created_at = created_at;
this.updated_at = updated_at;
this.block_id = block_id;
this.zone_id = zone_id;
this.inward_list = inward_list;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getInward_list_id() {
return inward_list_id;
}
public void setInward_list_id(int inward_list_id) {
this.inward_list_id = inward_list_id;
}
public int getSlot_id() {
return slot_id;
}
public void setSlot_id(int slot_id) {
this.slot_id = slot_id;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public int getShifting_request() {
return shifting_request;
}
public void setShifting_request(int shifting_request) {
this.shifting_request = shifting_request;
}
public String getCreated_at() {
return created_at;
}
public void setCreated_at(String created_at) {
this.created_at = created_at;
}
public String getUpdated_at() {
return updated_at;
}
public void setUpdated_at(String updated_at) {
this.updated_at = updated_at;
}
public int getBlock_id() {
return block_id;
}
public void setBlock_id(int block_id) {
this.block_id = block_id;
}
public int getZone_id() {
return zone_id;
}
public void setZone_id(int zone_id) {
this.zone_id = zone_id;
}
public InwardList getInward_list() {
return inward_list;
}
public void setInward_list(InwardList inward_list) {
this.inward_list = inward_list;
}
}
package mv.com.jps.alerm.Block;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
/**
* Created by amin on 2/20/16.
*/
public class Slots {
@SerializedName("tiear")
@Expose
public int tiear;
@SerializedName("data")
@Expose
public ArrayList<Data> data;
public Slots(int tiear, ArrayList<Data> data) {
this.tiear = tiear;
this.data = data;
}
public int getTiear() {
return tiear;
}
public void setTiear(int tiear) {
this.tiear = tiear;
}
public List<Data> getData() {
return data;
}
public void setData(ArrayList<Data> data) {
this.data = data;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment