congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CapabilityBooleanType
Code IndexAdd Tabnine to your IDE (free)

How to use
CapabilityBooleanType
in
com.owncloud.android.lib.resources.status

Best Java code snippets using com.owncloud.android.lib.resources.status.CapabilityBooleanType (Showing top 9 results out of 315)

origin: owncloud/android-library

public boolean isUnknown(){
  return getValue() == -1;
}
origin: owncloud/android-library

JSONObject respFilesSharing = respCapabilities.getJSONObject(NODE_FILES_SHARING);
if (respFilesSharing.has(PROPERTY_API_ENABLED)) {
  capability.setFilesSharingApiEnabled(CapabilityBooleanType.fromBooleanValue(
      respFilesSharing.getBoolean(PROPERTY_API_ENABLED)));
  capability.setFilesSharingPublicEnabled(CapabilityBooleanType.fromBooleanValue(
      respPublic.getBoolean(PROPERTY_ENABLED)));
  if(respPublic.has(NODE_PASSWORD)) {
    capability.setFilesSharingPublicPasswordEnforced(
        CapabilityBooleanType.fromBooleanValue(
        respPublic.getJSONObject(NODE_PASSWORD).getBoolean(PROPERTY_ENFORCED)));
    JSONObject respExpireDate = respPublic.getJSONObject(NODE_EXPIRE_DATE);
    capability.setFilesSharingPublicExpireDateEnabled(
        CapabilityBooleanType.fromBooleanValue(
            respExpireDate.getBoolean(PROPERTY_ENABLED)));
    if (respExpireDate.has(PROPERTY_DAYS)) {
          CapabilityBooleanType.fromBooleanValue(
              respExpireDate.getBoolean(PROPERTY_ENFORCED)));
    capability.setFilesSharingPublicUpload(CapabilityBooleanType.fromBooleanValue(
        respPublic.getBoolean(PROPERTY_UPLOAD)));
    capability.setFilesSharingPublicSupportsUploadOnly(CapabilityBooleanType.fromBooleanValue(
        respPublic.getBoolean(PROPERTY_UPLOAD_ONLY)));
    capability.setFilesSharingPublicMultiple(CapabilityBooleanType.fromBooleanValue(
        respPublic.getBoolean(PROPERTY_MULTIPLE)));
origin: nextcloud/android-library

OCCapability capability = (OCCapability) capabilitiesResult.getData().get(0);
if (capability.getExternalLinks().isTrue()) {
origin: nextcloud/android-library

JSONObject respFilesSharing = respCapabilities.getJSONObject(NODE_FILES_SHARING);
if (respFilesSharing.has(PROPERTY_API_ENABLED)) {
  capability.setFilesSharingApiEnabled(CapabilityBooleanType.fromBooleanValue(
      respFilesSharing.getBoolean(PROPERTY_API_ENABLED)));
  capability.setFilesSharingPublicEnabled(CapabilityBooleanType.fromBooleanValue(
      respPublic.getBoolean(PROPERTY_ENABLED)));
  if(respPublic.has(NODE_PASSWORD)) {
    capability.setFilesSharingPublicPasswordEnforced(
        CapabilityBooleanType.fromBooleanValue(
            respPublic.getJSONObject(NODE_PASSWORD).getBoolean(PROPERTY_ENFORCED)));
        CapabilityBooleanType.fromBooleanValue(
            respPublic.getBoolean(NODE_FILES_DROP))
    );
    JSONObject respExpireDate = respPublic.getJSONObject(NODE_EXPIRE_DATE);
    capability.setFilesSharingPublicExpireDateEnabled(
        CapabilityBooleanType.fromBooleanValue(
            respExpireDate.getBoolean(PROPERTY_ENABLED)));
    if (respExpireDate.has(PROPERTY_DAYS)) {
          CapabilityBooleanType.fromBooleanValue(
              respExpireDate.getBoolean(PROPERTY_ENFORCED)));
    capability.setFilesSharingPublicUpload(CapabilityBooleanType.fromBooleanValue(
        respPublic.getBoolean(PROPERTY_UPLOAD)));
  capability.setFilesSharingUserSendMail(CapabilityBooleanType.fromBooleanValue(
origin: nextcloud/android-library

public boolean isFalse(){
  return getValue() == 0;
}
origin: owncloud/android-library

public boolean isFalse(){
  return getValue() == 0;
}
origin: nextcloud/android-library

public boolean isTrue(){
  return getValue() == 1;
}
origin: nextcloud/android-library

public boolean isUnknown(){
  return getValue() == -1;
}
origin: owncloud/android-library

public boolean isTrue(){
  return getValue() == 1;
}
com.owncloud.android.lib.resources.statusCapabilityBooleanType

Javadoc

Enum for Boolean Type in OCCapability parameters, with values: -1 - Unknown 0 - False 1 - True

Most used methods

  • fromBooleanValue
  • getValue
  • isTrue

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JComboBox (javax.swing)
  • 21 Best IntelliJ Plugins
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