Advertisement
Guest User

Basic4Android SocialAuth

a guest
Jan 27th, 2013
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.51 KB | None | 0 0
  1. package com.rootsoft.socialauth;
  2.  
  3. import org.brickred.socialauth.*;
  4.  
  5. import anywheresoftware.b4a.BA.ShortName;
  6.  
  7. @ShortName("SocialContact")
  8. public class SocialContact {
  9.    
  10.     private Contact contact;
  11.    
  12.     /**
  13.      * Gets or sets the contact object.
  14.      * @param c
  15.      */
  16.     public void setContact(Contact c) {
  17.         contact = c;
  18.     }
  19.    
  20.     /**
  21.      * Gets or sets the contact object.
  22.      * @return
  23.      */
  24.     public Contact getContact() {
  25.         return contact;
  26.     }
  27.    
  28.     /**
  29.      * Gets the display name.
  30.      * @return
  31.      */
  32.     public String getDisplayName() {
  33.         return contact.getDisplayName();
  34.     }
  35.    
  36.     public void setDisplayName(String displayName) {
  37.         this.contact.setDisplayName(displayName);
  38.     }
  39.    
  40.     /**
  41.      * Gets the email.
  42.      * @return
  43.      */
  44.     public String getEmail() {
  45.         return contact.getEmail();
  46.     }
  47.    
  48.     /**
  49.      * Gets the email hash.
  50.      * @return
  51.      */
  52.     public String getEmailHash() {
  53.         return contact.getEmailHash();
  54.     }
  55.    
  56.     /**
  57.      * Gets the first name.
  58.      * @return
  59.      */
  60.     public String getFirstName() {
  61.         return contact.getFirstName();
  62.     }
  63.    
  64.     /**
  65.      * Gets the id.
  66.      * @return
  67.      */
  68.     public String getId() {
  69.         return contact.getId();
  70.     }
  71.    
  72.     /**
  73.      * Gets the last name.
  74.      * @return
  75.      */
  76.     public String getLastName() {
  77.         return contact.getLastName();
  78.     }
  79.    
  80.     /**
  81.      * Gets all emails addresses.
  82.      * @return
  83.      */
  84.     public String[] getOtherEmails() {
  85.         return contact.getOtherEmails();
  86.     }
  87.    
  88.     /**
  89.      * Gets the profile url.
  90.      * @return
  91.      */
  92.     public String getProfileUrl() {
  93.         return contact.getProfileUrl();
  94.     }
  95.  
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement