@@ -0,0 +1,3176 @@
+package foodrev.org.foodrev.domain.models;%0A%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.net.Uri;%0Aimport android.widget.Toast;%0A%0A/**%0A * Created by Gregory Kielian on 2/15/17.%0A */%0A%0Apublic abstract class PointOfContact %7B%0A%0A    // poc name%0A    String firstName;%0A    String lastName;%0A%0A    // contact methods%0A    String email;%0A    String sms;%0A    String phoneNumber;%0A%0A    //availability%0A    boolean isAvailable;%0A%0A    // preferred method of contact -- avoiding enum for space reasons%0A    public static final int PREFER_EMAIL = 0;%0A    public static final int PREFER_SMS = 1;%0A    public static final int PREFER_PHONENUMBER = 2;%0A%0A    int preferredMethodOfContact;%0A%0A    // Contact POC%0A    public void startPhoneCall(Context context) %7B%0A        Intent i = new Intent(Intent.ACTION_DIAL);%0A        i.setData(Uri.parse(%22tel:%22 + this.phoneNumber));%0A%0A        //return to foodrev app after call%0A        i.addFlags(i.FLAG_ACTIVITY_NEW_TASK);%0A%0A        context.startActivity(i);%0A    %7D%0A%0A    public void sendSms(Context context) %7B%0A        Intent i = new Intent(Intent.ACTION_VIEW);%0A        i.setData(Uri.parse(%22sms:%22 + this.phoneNumber));%0A%0A        //return to foodrev app after call%0A        i.addFlags(i.FLAG_ACTIVITY_NEW_TASK);%0A%0A        context.startActivity(i);%0A    %7D%0A%0A    public void sendEmail(Context context, String emailSubject, String emailBody) %7B%0A%0A        Intent i = new Intent(Intent.ACTION_SEND);%0A%0A        i.putExtra(Intent.EXTRA_EMAIL, this.email);%0A        i.putExtra(Intent.EXTRA_SUBJECT,emailSubject);%0A        i.putExtra(Intent.EXTRA_TEXT,emailBody);%0A        i.setType(%22message/rfc822%22);%0A%0A        //return to foodrev app after call%0A        i.addFlags(i.FLAG_ACTIVITY_NEW_TASK);%0A%0A        try %7B%0A            context.startActivity(Intent.createChooser(i, %22Send mail...%22));%0A        %7D catch( android.content.ActivityNotFoundException ex ) %7B%0A            Toast.makeText(context, %22There are no email clients installed.%22,%0A                    Toast.LENGTH_SHORT).show();%0A        %7D%0A    %7D%0A%0A    // getters and setters%0A    public String getFirstName() %7B%0A        return firstName;%0A    %7D%0A%0A    public void setFirstName(String firstName) %7B%0A        this.firstName = firstName;%0A    %7D%0A%0A    public String getLastName() %7B%0A        return lastName;%0A    %7D%0A%0A    public void setLastName(String lastName) %7B%0A        this.lastName = lastName;%0A    %7D%0A%0A    public String getEmail() %7B%0A        return email;%0A    %7D%0A%0A    public void setEmail(String email) %7B%0A        this.email = email;%0A    %7D%0A%0A    public String getSms() %7B%0A        return sms;%0A    %7D%0A%0A    public void setSms(String sms) %7B%0A        this.sms = sms;%0A    %7D%0A%0A    public String getPhoneNumber() %7B%0A        return phoneNumber;%0A    %7D%0A%0A    public void setPhoneNumber(String phoneNumber) %7B%0A        this.phoneNumber = phoneNumber;%0A    %7D%0A%0A    public boolean isAvailable() %7B%0A        return isAvailable;%0A    %7D%0A%0A    public void setAvailable(boolean available) %7B%0A        isAvailable = available;%0A    %7D%0A%0A    public int getPreferredMethodOfContact() %7B%0A        return preferredMethodOfContact;%0A    %7D%0A%0A    public void setPreferredMethodOfContact(int preferredMethodOfContact) %7B%0A        this.preferredMethodOfContact = preferredMethodOfContact;%0A    %7D%0A%7D%0A

add PointOfContact abstract class