Click or drag to resize
ApiSession Class
ServerAPI contains the implementation of the WatchDox REST API to be used in the WatchDox Uploader
Inheritance Hierarchy
SystemObject
  BlackBerry.WorkspacesApiSession

Namespace:  BlackBerry.Workspaces
Assembly:  BlackBerryWorkspacesSDK (in BlackBerryWorkspacesSDK.dll) Version: 7.0.0.223 (7.0.0.223)
Syntax
C#
public class ApiSession : ISessionCallbacks, IDisposable

The ApiSession type exposes the following members.

Constructors
  NameDescription
Public methodApiSession
ApiSession constructor
Top
Properties
  NameDescription
Public propertyActiveEmail
Get or Set the email address for the currently signed in user
Public propertyConnected
Return if connected to the server or not
Public propertyConnection
Gets the connection
Public propertyGlobalDownloadPermission
Get or Set global download permission
Public propertyIsUploading
Get or Set if there is a file being uploaded right now in a thread safe manner
Public propertyLastUserPlansRefreshTime
Last user plans refresh time
Public propertySentBytes
Sent bytes
Public propertySessionID
Gets or Sets the Session ID
Public propertySignInManager
SignInManager
Public propertySyncDownloadLimit
Sync download limit
Public propertySyncUploadLimit
Sync upload limit
Public propertyUploadSpeed
Upload speed
Public propertyUserPlan
Information about user plan
Top
Methods
  NameDescription
Public methodBeforeSendingRequest
BeforeSendRequest event
Public methodCaughtSocketException
Catches socket exception
Public methodDispose
Dispose
Public methodEndSession
Clear the SessionID value and stop the renewal timer
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEstablishedConnectionToTheInternet
Reports wheather connection established to the Internet
Public methodGetAuthenticationResource
Retrieves an instance of an Authentication resource
Public methodGetDownloadManager
Get a new DownloadManager instance.
Public methodStatic memberGetEmailFromSessionId
Gets Email from sessionId
Public methodGetFilesResource
Retrieves an instance of a Files resource
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetIManageWorkspacesResource
Retrieves an instance of a IManageWorkspaces resource
Public methodGetItemsResource
Retrieves an instance of a Items resource
Public methodGetNotificationsResource
Retrieves an instance of a Notifications resource
Public methodGetOneDriveManagementResource
Retrieves an instance of a OneDriveManagement resource
Public methodGetOrganizationsResource
Retrieves an instance of a Organizations resource
Public methodGetSearchResource
Retrieves an instance of a Search resource
Public methodGetServerTime
Gets server time
Public methodGetSessionsResource
Retrieves an instance of a Sessions resource
Public methodGetSharePointResource
Retrieves an instance of a SharePoint resource
Public methodGetSystemPropertiesResource
Retrieves an instance of a SystemProperties resource
Public methodGetToken
Gets auth token
Public methodGetTransientWorkspacesResource
Retrieves an instance of a TransientWorkspaces resource
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUploadManager
Get a new UploadManager instance.
Public methodGetUsersResource
Retrieves an instance of a Users resource
Public methodGetWorkspacesResource
Retrieves an instance of a Workspaces resource
Public methodListAvailableVDRs
List available workspaces
Public methodLoadExistingSession
Loads existing session
Public methodLogOff
Attempts to perform the logoff method that corresponds with the sign in type
Public methodLostConnectionToTheInternet
Reports wheather connection lost to the Internet
Public methodReportProxyAuthenticationRequired
Reports wheather proxy autentication required
Public methodSessionIdExpired
Checks whether session expired
Public methodSetNetworkBandwidthLimit
Sets Network Bandwidth Limit
Public methodSetServerTime
Sets server time
Public methodStartSessionWithOAuth
Sign in against server with given email
Public methodStartSessionWithServiceAccount
Sign in against server with service account
Public methodTestConnection
Actively check Internet connection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateBytesSent
Updates bytes sent
Public methodUpdateUploadSpeed
Updates upload speed
Public methodWaitForRenewal
Waits for renewal
Top
Events
  NameDescription
Public eventBeforeSendRequest
BeforeSendRequest
Public eventConnectionEstablished
ConnectionEstablished
Public eventConnectionLost
ConnectionLost
Public eventProxyAuthenticationRequired
ProxyAuthenticationRequired
Public eventSessionExpired
SessionExpired
Public eventSessionSignInInfoChanged
SessionSignInInfoChanged
Public eventSocketExceptionCaught
SocketExceptionCaught
Top
See Also