Tabnine Logo
AccountDetails.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
co.chatsdk.core.types.AccountDetails
constructor

Best Java code snippets using co.chatsdk.core.types.AccountDetails.<init> (Showing top 9 results out of 315)

origin: chat-sdk/chat-sdk-android

public static AccountDetails google () {
  AccountDetails a = new AccountDetails();
  a.type = Type.Google;
  return a;
}
origin: chat-sdk/chat-sdk-android

public static AccountDetails anonymous () {
  AccountDetails a = new AccountDetails();
  a.type = Type.Anonymous;
  return a;
}
origin: chat-sdk/chat-sdk-android

public static AccountDetails username (String username, String password) {
  AccountDetails a = new AccountDetails();
  a.type = Type.Username;
  a.username = username;
  a.password = password;
  return a;
}
origin: chat-sdk/chat-sdk-android

public static AccountDetails twitter () {
  AccountDetails a = new AccountDetails();
  a.type = Type.Twitter;
  return a;
}
origin: chat-sdk/chat-sdk-android

public static AccountDetails facebook () {
  AccountDetails a = new AccountDetails();
  a.type = Type.Facebook;
  return a;
}
origin: chat-sdk/chat-sdk-android

public static AccountDetails signUp(String username, String password) {
  AccountDetails a = new AccountDetails();
  a.type = Type.Register;
  a.username = username;
  a.password = password;
  return a;
}
origin: chat-sdk/chat-sdk-android

public static AccountDetails token(String token) {
  AccountDetails a = new AccountDetails();
  a.type = Type.Custom;
  a.token = token;
  return a;
}
origin: chat-sdk/chat-sdk-android

public void anonymousLogin () {
  AccountDetails details = new AccountDetails();
  details.type = AccountDetails.Type.Anonymous;
  authenticateWithDetails(details);
}
origin: chat-sdk/chat-sdk-android

public void register() {
  if (!checkFields()) {
    dismissProgressDialog();
    return;
  }
  AccountDetails details = new AccountDetails();
  details.type = AccountDetails.Type.Register;
  details.username = usernameEditText.getText().toString();
  details.password = passwordEditText.getText().toString();
  authenticateWithDetails(details);
}
co.chatsdk.core.typesAccountDetails<init>

Popular methods of AccountDetails

  • username

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now