Wednesday, 24 September 2014

ArrayList parce.

public class EventsVo extends BaseVo
{
 private EventListParserVo Data;

 public EventListParserVo getData()
 {
  return Data;
 }
 
}
public class EventStaffCoordinatorVo implements Parcelable
{
 private String Name;
 private String PhoneNo;

 public EventStaffCoordinatorVo(Parcel in)
 {
  setName(in.readString());
  setPhoneNo(in.readString());
 }

 public String getName()
 {
  return Name;
 }

 public void setName(String name)
 {
  Name = name;
 }

 public String getPhoneNo()
 {
  return PhoneNo;
 }

 public void setPhoneNo(String phoneNo)
 {
  PhoneNo = phoneNo;
 }

 @Override
 public int describeContents()
 {
  return 0;
 }

 @Override
 public void writeToParcel(Parcel dest, int flags)
 {
  dest.writeString(getName());
  dest.writeString(getPhoneNo());
 }

 public static final Parcelable.Creator<EventStaffCoordinatorVo> CREATOR = new Parcelable.Creator<EventStaffCoordinatorVo>()
 {
  @Override
  public EventStaffCoordinatorVo createFromParcel(Parcel in)
  {
   return new EventStaffCoordinatorVo(in);
  }

  @Override
  public EventStaffCoordinatorVo[] newArray(int size)
  {
   return new EventStaffCoordinatorVo[size];
  }
 };
}
public class EventListParserVo implements Parcelable
{
 private ArrayList<EventItemVo> Accepted = new ArrayList<EventItemVo>();
 private ArrayList<EventItemVo> Waiting = new ArrayList<EventItemVo>();
 private ArrayList<EventItemVo> Confirmed = new ArrayList<EventItemVo>();

 public EventListParserVo(Parcel in)
 {
  Accepted = (ArrayList<EventItemVo>) in.readSerializable();
  setAccepted(Accepted);
  Waiting = (ArrayList<EventItemVo>) in.readSerializable();
  setWaiting(Waiting);
  Confirmed = (ArrayList<EventItemVo>) in.readSerializable();
  setConfirmed(Confirmed);
 }

 public ArrayList<EventItemVo> getAccepted()
 {
  return Accepted;
 }

 public void setAccepted(ArrayList<EventItemVo> accepted)
 {
  Accepted = accepted;
 }

 public ArrayList<EventItemVo> getWaiting()
 {
  return Waiting;
 }

 public void setWaiting(ArrayList<EventItemVo> waiting)
 {
  Waiting = waiting;
 }

 public ArrayList<EventItemVo> getConfirmed()
 {
  return Confirmed;
 }

 public void setConfirmed(ArrayList<EventItemVo> confirmed)
 {
  Confirmed = confirmed;
 }

 @Override
 public int describeContents()
 {
  return 0;
 }

 @Override
 public void writeToParcel(Parcel dest, int flags)
 {
  dest.writeList(getAccepted());
  dest.writeList(getWaiting());
  dest.writeList(getConfirmed());
 }
}

public class EventItemVo implements Parcelable
{
 private int Id;
 private String DateTime;
 private String WSCompanyName;
 private String Location;
 private String JobTitle;
 private String Description;
 private String Rate;
 private int Status;
 private EventStaffCoordinatorVo StaffCoordinatorDetail;
 private boolean isMarked;

 public EventItemVo()
 {
 }

 public EventItemVo(Parcel in)
 {
  setId(in.readInt());
  setDateTime(in.readString());
  setWSCompanyName(in.readString());
  setLocation(in.readString());
  setJobTitle(in.readString());
  setDescription(in.readString());
  setRate(in.readString());
  setStatus(in.readInt());
  StaffCoordinatorDetail = (EventStaffCoordinatorVo) in.readParcelable(EventStaffCoordinatorVo.class.getClassLoader());
  setStaffCoordinatorDetail(StaffCoordinatorDetail);
 }

 public EventStaffCoordinatorVo getStaffCoordinatortData()
 {
  return StaffCoordinatorDetail;
 }

 public int getId()
 {
  return Id;
 }

 public void setId(int id)
 {
  Id = id;
 }

 public String getDateTime()
 {
  return DateTime;
 }

 public void setDateTime(String dateTime)
 {
  DateTime = dateTime;
 }

 public String getWSCompanyName()
 {
  return WSCompanyName;
 }

 public void setWSCompanyName(String wSCompanyName)
 {
  WSCompanyName = wSCompanyName;
 }

 public String getLocation()
 {
  return Location;
 }

 public void setLocation(String location)
 {
  Location = location;
 }

 public String getJobTitle()
 {
  return JobTitle;
 }

 public void setJobTitle(String jobTitle)
 {
  JobTitle = jobTitle;
 }

 public String getDescription()
 {
  return Description;
 }

 public void setDescription(String description)
 {
  Description = description;
 }

 public String getRate()
 {
  return Rate;
 }

 public void setRate(String rate)
 {
  Rate = rate;
 }

 public int getStatus()
 {
  return Status;
 }

 public void setStatus(int status)
 {
  Status = status;
 }

 public EventStaffCoordinatorVo getStaffCoordinatorDetail()
 {
  return StaffCoordinatorDetail;
 }

 public void setStaffCoordinatorDetail(EventStaffCoordinatorVo staffCoordinatorDetail)
 {
  StaffCoordinatorDetail = staffCoordinatorDetail;
 }

 public boolean isMarked()
 {
  return isMarked;
 }

 public void setMarked(boolean isMarked)
 {
  this.isMarked = isMarked;
 }

 @Override
 public int describeContents()
 {

  return 0;
 }

 @Override
 public void writeToParcel(Parcel dest, int arg1)
 {
  dest.writeInt(getId());
  dest.writeString(getDateTime());
  dest.writeString(getWSCompanyName());
  dest.writeString(getLocation());
  dest.writeString(getJobTitle());
  dest.writeString(getDescription());
  dest.writeString(getRate());
  dest.writeInt(getStatus());
  dest.writeParcelable(getStaffCoordinatorDetail(), 0);
 }

 public static final Parcelable.Creator<EventItemVo> CREATOR = new Parcelable.Creator<EventItemVo>()
 {
  @Override
  public EventItemVo createFromParcel(Parcel in)
  {
   return new EventItemVo(in);
  }

  @Override
  public EventItemVo[] newArray(int size)
  {
   return new EventItemVo[size];
  }
 };
}

Monday, 15 September 2014

Mobile Application Design Tool

1) Hand draw image convert to application preview.
 https://popapp.in/
2)

 - Mobile Application Design
  https://hackdesign.org/lessons