Tabnine Logo
AccountDetails
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using co.chatsdk.core.types.AccountDetails (Showing top 10 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 void passwordLogin() {
  if (!checkFields()) {
    dismissProgressDialog();
    return;
  }
  if(!isNetworkAvailable()) {
    Timber.v("Network Connection unavailable");
  }
  AccountDetails details = AccountDetails.username(usernameEditText.getText().toString(), passwordEditText.getText().toString());
  authenticateWithDetails(details);
}
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 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 static AccountDetails facebook () {
  AccountDetails a = new AccountDetails();
  a.type = Type.Facebook;
  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

Javadoc

Created by benjaminsmiley-andrews on 03/07/2017.

Most used methods

  • <init>
  • username

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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