public class

SCProfile

extends IProfile.Stub
java.lang.Object
   ↳ android.os.Binder
     ↳ com.c2call.sdk.lib.common.aidl.IProfile.Stub
       ↳ com.c2call.sdk.pub.common.SCProfile

Class Overview

The profile class for a user

Summary

Nested Classes
class SCProfile.UserData  
[Expand]
Inherited Constants
From interface android.os.IBinder
Public Constructors
SCProfile(String id)
Instantiates a new SCProfile.
SCProfile()
Instantiates a new SCProfile.
SCProfile(SCParticulars particulars, SCCallForward callForward)
Instantiates a new SCProfile.
SCProfile(String id, SCParticulars particulars)
Instantiates a new SCProfile.
SCProfile(String id, SCParticulars particulars, SCCallForward callForward)
Instantiates a new SCProfile.
SCProfile(SCProfile src)
Copy constructor
Public Methods
void addDidExt(Integer num, String value)
static SCProfile fromXml(String xml)
SCCallForward getCallForward()
Gets the call forward.
SCCallMeLink getCallMeLink()
Gets the CallMeLink
String getCity()
Gets the city.
String getCountry()
Gets the country.
int getCredit()
Gets the credit.
String getCurrency()
Gets the currency.
String getCustomSatus()
Get the cuustom status of this user
long getCustomSatusTime()
Get the last modification time of the custom status
String getDidExt(int num)
Map<Integer, String> getDidExt()
String getDidNumber()
Gets the DID number.
String getEmail()
Gets the email.
String getEmailHash()
String getFirstName()
Gets the first name.
String getId()
Gets the id.
String getIpCountry()
Gets the ip country.
String getLargeImage()
Gets the large image.
String getLastName()
Gets the last name.
long getModTime()
Gets the last modification time.
String getOwnNumber()
Gets the own number.
String getPassword()
Gets the password.
String getPhoneHome()
Gets the phone home.
String getPhoneMobile()
Gets the pone mobile.
String getPhoneOther()
Gets the phone other.
String getPhoneWork()
Gets the phone work.
String getPublicKeyDevice()
String getPublicKeyString()
String getSessionId()
Gets the session id.
String getSmallImage()
Gets the small image.
String getStreet()
Gets the street.
SCProfile.UserData getUserData(String key)
String getUserDataValue(String key)
String getZip()
Gets the zip code.
boolean hasDidNumber()
boolean isCallMeLinkActive()
Checks if CallMeLink is active.
boolean isConfirmed()
Checks if is confirmed.
boolean isFemale()
Returns if this profile is a male user
boolean isOwnNumberVerified()
Checks if is own number is verified.
boolean isVat()
Checks if this user must handle VAT (value added tex)
void removeDidExt(int num)
void setCallForward(SCCallForward callForward)
Sets the call forward.
void setCallMeLink(SCCallMeLink value)
Sets the CallMeLink.
void setCity(String city)
void setConfirmed(boolean confirmed)
Sets if this user is confirmed
void setCountry(String country)
void setCredit(int credit)
Sets the credit.
void setCurrency(String currency)
Sets the currency.
void setCustomSatus(String customSatus)
Sets the custom status of this user
void setCustomSatusTime(long customSatusTime)
void setDidNumber(String value)
Sets the DID number.
void setEmail(String email)
Sets the email.
void setEmailHash(String emailHash)
void setFemale(boolean value)
Sets the gender for this user.
void setFirstName(String firstName)
Sets the first name.
void setId(String id)
Sets the id.
void setIpCountry(String ipCountry)
Sets the ip country.
void setLargeImage(String value)
void setLastName(String lastName)
Sets the last name.
void setModTime(long value)
Sets the modification time.
void setOwnNumber(String value)
Sets the own number.
void setOwnNumberVerified(boolean value)
Sets the own number verified.
void setPassword(String password)
Sets the password.
void setPhoneHome(String number)
Sets the phone home.
void setPhoneMobile(String number)
Sets the phone mobile.
void setPhoneOther(String number)
Sets the phone other.
void setPhoneWork(String number)
Sets the phone work.
void setPublicKey(PublicKey key, String device)
void setSessionId(String sessionId)
Sets the session id.
void setSmallImage(String value)
Sets the smal image.
void setStreet(String street)
void setUserData(Set<SCProfile.UserData> userdata)
void setUserData(String key, String value, boolean isPublic)
void setVat(boolean isVat)
Sets if this user must handle a VAT (value added tax)
void setZip(String zip)
String toString()
String toXml()
Generates a XML String that can be handled by the C2Call client
Protected Methods
synchronized void ensurePhoneData()
[Expand]
Inherited Methods
From class com.c2call.sdk.lib.common.aidl.IProfile.Stub
From class android.os.Binder
From class java.lang.Object
From interface android.os.IBinder
From interface android.os.IInterface

Public Constructors

public SCProfile (String id)

Instantiates a new SCProfile.

Parameters
id the user ID

public SCProfile ()

Instantiates a new SCProfile.

public SCProfile (SCParticulars particulars, SCCallForward callForward)

Instantiates a new SCProfile.

Parameters
particulars the particulars
callForward the call forward

public SCProfile (String id, SCParticulars particulars)

Instantiates a new SCProfile.

Parameters
id the id
particulars the particulars

public SCProfile (String id, SCParticulars particulars, SCCallForward callForward)

Instantiates a new SCProfile.

Parameters
id the id
particulars the particulars
callForward the call forward

public SCProfile (SCProfile src)

Copy constructor

Parameters
src the source object

Public Methods

public void addDidExt (Integer num, String value)

public static SCProfile fromXml (String xml)

public SCCallForward getCallForward ()

Gets the call forward.

Returns
  • the call forward

public SCCallMeLink getCallMeLink ()

Gets the CallMeLink

Returns
  • the CallMeLink

public String getCity ()

Gets the city.

Returns
  • the city

public String getCountry ()

Gets the country.

Returns
  • the country

public int getCredit ()

Gets the credit.

Returns
  • the credit

public String getCurrency ()

Gets the currency.

Returns
  • the currency

public String getCustomSatus ()

Get the cuustom status of this user

public long getCustomSatusTime ()

Get the last modification time of the custom status

Returns
  • the last modification time of the custom status

public String getDidExt (int num)

public Map<Integer, String> getDidExt ()

public String getDidNumber ()

Gets the DID number.

Returns
  • the DID number

public String getEmail ()

Gets the email.

Returns
  • the email

public String getEmailHash ()

public String getFirstName ()

Gets the first name.

Returns
  • the first name

public String getId ()

Gets the id.

Returns
  • the id

public String getIpCountry ()

Gets the ip country.

Returns
  • the ip country

public String getLargeImage ()

Gets the large image.

Returns
  • the large image

public String getLastName ()

Gets the last name.

Returns
  • the last name

public long getModTime ()

Gets the last modification time.

Returns
  • the last modification time

public String getOwnNumber ()

Gets the own number.

Returns
  • the own number

public String getPassword ()

Gets the password.

Returns
  • the password

public String getPhoneHome ()

Gets the phone home.

Returns
  • the phone home

public String getPhoneMobile ()

Gets the pone mobile.

Returns
  • the pone mobile

public String getPhoneOther ()

Gets the phone other.

Returns
  • the phone other

public String getPhoneWork ()

Gets the phone work.

Returns
  • the phone work

public String getPublicKeyDevice ()

public String getPublicKeyString ()

public String getSessionId ()

Gets the session id.

Returns
  • the session id

public String getSmallImage ()

Gets the small image.

Returns
  • the small image

public String getStreet ()

Gets the street.

Returns
  • the street

public SCProfile.UserData getUserData (String key)

public String getUserDataValue (String key)

public String getZip ()

Gets the zip code.

Returns
  • the zip code

public boolean hasDidNumber ()

public boolean isCallMeLinkActive ()

Checks if CallMeLink is active.

Returns
  • true, if CallMeLink is active

public boolean isConfirmed ()

Checks if is confirmed.

Returns
  • true, if is confirmed

public boolean isFemale ()

Returns if this profile is a male user

Returns
  • true if this profile is a male user

public boolean isOwnNumberVerified ()

Checks if is own number is verified.

Returns
  • true, if is own number is verified

public boolean isVat ()

Checks if this user must handle VAT (value added tex)

Returns
  • true, if VAT must be handled

public void removeDidExt (int num)

public void setCallForward (SCCallForward callForward)

Sets the call forward.

Parameters
callForward the new call forward

public void setCallMeLink (SCCallMeLink value)

Sets the CallMeLink.

Parameters
value the new CallMeLink

public void setCity (String city)

public void setConfirmed (boolean confirmed)

Sets if this user is confirmed

Parameters
confirmed true to set the user confirmed

public void setCountry (String country)

public void setCredit (int credit)

Sets the credit.

Parameters
credit the new credit

public void setCurrency (String currency)

Sets the currency.

Parameters
currency the new currency

public void setCustomSatus (String customSatus)

Sets the custom status of this user

Parameters
customSatus the new status

public void setCustomSatusTime (long customSatusTime)

public void setDidNumber (String value)

Sets the DID number.

Parameters
value the new DID number

public void setEmail (String email)

Sets the email.

Parameters
email the new email

public void setEmailHash (String emailHash)

public void setFemale (boolean value)

Sets the gender for this user.

Parameters
value true for female, false for male

public void setFirstName (String firstName)

Sets the first name.

Parameters
firstName the new first name

public void setId (String id)

Sets the id.

Parameters
id the new id

public void setIpCountry (String ipCountry)

Sets the ip country.

Parameters
ipCountry the new ip country

public void setLargeImage (String value)

public void setLastName (String lastName)

Sets the last name.

Parameters
lastName the new last name

public void setModTime (long value)

Sets the modification time.

Parameters
value the new modification time

public void setOwnNumber (String value)

Sets the own number.

Parameters
value the new own number

public void setOwnNumberVerified (boolean value)

Sets the own number verified.

Parameters
value set the own number verified

public void setPassword (String password)

Sets the password.

Parameters
password the new password

public void setPhoneHome (String number)

Sets the phone home.

public void setPhoneMobile (String number)

Sets the phone mobile.

public void setPhoneOther (String number)

Sets the phone other.

public void setPhoneWork (String number)

Sets the phone work.

public void setPublicKey (PublicKey key, String device)

public void setSessionId (String sessionId)

Sets the session id.

Parameters
sessionId the new session id

public void setSmallImage (String value)

Sets the smal image.

Parameters
value the new smal image

public void setStreet (String street)

public void setUserData (Set<SCProfile.UserData> userdata)

public void setUserData (String key, String value, boolean isPublic)

public void setVat (boolean isVat)

Sets if this user must handle a VAT (value added tax)

Parameters
isVat set this to true to handle VAT

public void setZip (String zip)

public String toString ()

public String toXml ()

Generates a XML String that can be handled by the C2Call client

Protected Methods

protected synchronized void ensurePhoneData ()