public final class

SCProfileHandler

extends Object
java.lang.Object
   ↳ com.c2call.sdk.pub.core.SCProfileHandler

Class Overview

This singleton holds the currently logged in user profile as well as some convinient methods to check some properties about this profile

See Also

Summary

Public Methods
SCCallMeLink getCallMeLink()
Gets the CallMeLink of this profile.
SCProfile getProfile()
Gets the SCProfile object
String getProfileUserId()
Gets the user ID of the profile.
static SCProfileHandler instance()
Gets the singleton instance of this class.
boolean isCallmeLink(SCFriendData friend)
Checks if the given friend is the CallMeLink of the profile.
boolean isCallmeLink(String id)
Checks if the given id equals the CallMeLink ID of this profile
boolean isCallmeLinkAndOffline(SCFriendData friend)
Checks if the given friend is the CallMeLink of the profile and if that CallMeLink is offline
boolean isProfileUserEmail(String email)
Checks if the given email is the profile's email.
boolean isProfileUserId(String id)
Checks if the given id is the profile's ID
boolean isSmsAvailable()
Checks if the SMS functionality is available for this user.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public SCCallMeLink getCallMeLink ()

Gets the CallMeLink of this profile.

Returns
  • the CallMeLink

public SCProfile getProfile ()

Gets the SCProfile object

Returns
  • the Profile

public String getProfileUserId ()

Gets the user ID of the profile.

Returns
  • the user ID

public static SCProfileHandler instance ()

Gets the singleton instance of this class.

Returns
  • the singleton instance

public boolean isCallmeLink (SCFriendData friend)

Checks if the given friend is the CallMeLink of the profile.

Parameters
friend the friend to check
Returns
  • true, if the given friend is the CallMeLink of the profile, false otherwise

public boolean isCallmeLink (String id)

Checks if the given id equals the CallMeLink ID of this profile

Parameters
id the ID to check
Returns
  • true, if the given id equals the CallMeLink ID of this profile

public boolean isCallmeLinkAndOffline (SCFriendData friend)

Checks if the given friend is the CallMeLink of the profile and if that CallMeLink is offline

Parameters
friend the friend to check.
Returns
  • true, if the given is the CallMeLink and if it's offline

public boolean isProfileUserEmail (String email)

Checks if the given email is the profile's email.

Parameters
email the email to check
Returns
  • true, if the given email is the profile's email

public boolean isProfileUserId (String id)

Checks if the given id is the profile's ID

Parameters
id the Id to check
Returns
  • true, if the given ID is the profile's Id, false otherwise

public boolean isSmsAvailable ()

Checks if the SMS functionality is available for this user.

Returns
  • true, if SMS functionality is available.