Android Open Source - BCC Contact Information






From Project

Back to project page BCC.

License

The source code is released under:

MIT License

If you think the Android project BCC listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.sdsu.bcc.database.data;
/*from w  w w.j a  v  a2s.  c  o  m*/
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@SuppressWarnings("serial")
public class ContactInformation implements Serializable {
  
  private int contactId = -1;
  private String name = "";
  private String company = "";
  private List<Map<String,String>> emails = null;
  private List<Map<String,String>> phone = null;
  private List<String> urls = null;
  
  public ContactInformation() {
    emails = new ArrayList<Map<String,String>>();
    phone = new ArrayList<Map<String,String>>();
    urls = new ArrayList<String>();
  }
  
  public int getContactId() {
    return contactId;
  }
  public void setContactId(int contactId) {
    this.contactId = contactId;
  }
  
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }
  public String getCompany() {
    if(null != company) {
      return company;
    } else {
      return "";
    }
  }
  public void setCompany(String company) {
    this.company = company;
  }
  public List<Map<String,String>> getEmails() {
    return emails;
  }
  public void setEmails(List<Map<String,String>> emails) {
    this.emails = emails;
  }
  public List<Map<String,String>> getPhone() {
    return phone;
  }
  public void setPhone(List<Map<String,String>> phone) {
    this.phone = phone;
  }
  public List<String> getUrls() {
    return urls;
  }
  public void setUrls(List<String> urls) {
    this.urls = urls;
  }
  
  public void addEmail(Map<String,String> email){
    this.emails.add(email);
  }
  
  public void addEmail(Map<String,String> email, int order){
    this.emails.add(order,email);
  }
  
  public void addPhone(Map<String,String> phone){
    this.phone.add(phone);
  }
  
  public void addPhone(Map<String,String> phone, int order) {
    this.phone.add(order,phone);
  }
  
  public void addUrl(String url){
    this.urls.add(url);
  }
  
  public void addUrl(String url,int order) {
    this.urls.add(order,url);
  }
  
  @Override
  public String toString() {
    return "name = " + name + " phone = " + phone + " emails = " + emails;
  }
}




Java Source Code List

com.bcc.AddBCCManage.java
com.bcc.AddBCC.java
com.bcc.BCCActivity.java
com.bcc.ImportExportBCC.java
com.bcc.ImportExportManage.java
com.bcc.OCRResult.java
com.bcc.SetPrefs.java
com.bcc.util.BCCUtil.java
com.bcc.util.Facade.java
com.bcc.util.adaptor.ManageBCCListAdaptor.java
com.bcc.util.adaptor.ManageListAdaptor.java
com.itwizard.mezzofanti.AssetsManager.java
com.itwizard.mezzofanti.CameraManager.java
com.itwizard.mezzofanti.CaptureLayout.java
com.itwizard.mezzofanti.CustomImageButton.java
com.itwizard.mezzofanti.DownloadManager.java
com.itwizard.mezzofanti.InstallActivity.java
com.itwizard.mezzofanti.Mezzofanti.java
com.itwizard.mezzofanti.OCR.java
com.itwizard.mezzofanti.OnScreenHint.java
com.sdsu.bcc.BCCConstants.java
com.sdsu.bcc.database.DatabaseImpl.java
com.sdsu.bcc.database.DatabaseOperation.java
com.sdsu.bcc.database.data.CardInformation.java
com.sdsu.bcc.database.data.CategoryInformation.java
com.sdsu.bcc.database.data.ContactInformation.java
com.sdsu.bcc.database.data.FilesInformation.java
com.sdsu.bcc.database.data.ImageInformation.java
com.sdsu.bcc.database.impl.BCCDataStore.java
com.sdsu.bcc.database.impl.CategoryDataStore.java
com.sdsu.bcc.database.impl.ContactDataStore.java
com.sdsu.bcc.database.impl.FilesDataStore.java
com.sdsu.bcc.database.impl.ImageDataStore.java
com.sdsu.bcc.file.FileDataStoreFactory.java
com.sdsu.bcc.file.FileDataStoreOperations.java
com.sdsu.bcc.file.impl.CSVDataStore.java