package spit.matrix2017.HelperClasses;

/**
 * Created by Rohit on 13/11/16.
 */

public class Event {

    //////////Custom data type for events//////////
    private String name, description, category, venue, time, contact1_name, contact2_name;
        private int image;
        private long contact1_no, contact2_no, favourite, reminder;

        public String getVenue() {
            return venue;
        }

        public String getTime() {
            return time;
        }

        public String getContact1_name() {
            return contact1_name;
        }

        public String getContact2_name() {
            return contact2_name;
        }

        public int getImage() {
            return image;
        }

        public long getContact1_no() {
            return contact1_no;
        }

        public long getContact2_no() {
            return contact2_no;
        }

        public String getCategory() {
            return category;
        }

        public String getName() {
            return name;
        }

    public long getFavourite() {
        return favourite;
    }

    public long getReminder() {
        return reminder;
    }

    public String getDescription() {
            return description;
        }

        public Event(String name, String description, int image, String category, String venue, String time, String contact1_name, long contact1_no, String contact2_name, long contact2_no)
        {
            this.name = name;
            this.description = description;
            this.image = image;
            this.category = category;
            this.venue = venue;
            this.time = time;
            this.contact1_name = contact1_name;
            this.contact1_no = contact1_no;
            this.contact2_name = contact2_name;
            this.contact2_no = contact2_no;
            this.favourite=0;
            this.reminder=0;
        }

    public Event(String name, String description, int image, String category, String venue, String time, String contact1_name, long contact1_no, String contact2_name, long contact2_no, int favourite, int reminder)
    {
        //used while fetching data
        this.name = name;
        this.description = description;
        this.image = image;
        this.category = category;
        this.venue = venue;
        this.time = time;
        this.contact1_name = contact1_name;
        this.contact1_no = contact1_no;
        this.contact2_name = contact2_name;
        this.contact2_no = contact2_no;
        this.favourite=favourite;
        this.reminder=reminder;
    }
    }



@@ -224,38 +224,64 @@
 t1_name, contact
-2_name
+1_no, contact2_name, contact2_no
 ;%0A        privat
@@ -317,34 +317,8 @@
 long
- contact1_no, contact2_no,
  fav
@@ -730,34 +730,36 @@
 %0A        public 
-lo
+Stri
 ng getContact1_n
@@ -818,26 +818,28 @@
      public 
-lo
+Stri
 ng getContac
@@ -1372,34 +1372,36 @@
  contact1_name, 
-lo
+Stri
 ng contact1_no, 
@@ -1414,34 +1414,36 @@
  contact2_name, 
-lo
+Stri
 ng contact2_no)%0A
@@ -2035,26 +2035,28 @@
 tact1_name, 
-lo
+Stri
 ng contact1_
@@ -2081,18 +2081,20 @@
 2_name, 
-lo
+Stri
 ng conta

Store contact numbers as Strings