Click or drag to resize
ParticleCloud Class
Represents the connection to the particle cloud.
Inheritance Hierarchy

Namespace: Particle
Assembly: Particle (in Particle.dll) Version: 0.8.5.14 (0.8.5.14)
Syntax
public class ParticleCloud : ParticleBase, 
	IDisposable

The ParticleCloud type exposes the following members.

Constructors
  NameDescription
Public methodParticleCloud
Initializes a new instance of the ParticleCloud class using the default url https://api.particle.io/v1/
Public methodParticleCloud(Uri)
Initializes a new instance of the ParticleCloud class.
Top
Properties
  NameDescription
Public propertyAccessToken
Gets the users Access token or returns null if the user not authenticated.
Public propertyIsAuthenticated
True if the user is authenticated into the cloud
Public propertyStatic memberSyncContext
Set this to the UI threads SynchronizationContext Any operation that may update the UI gets sent through the SyncContext if its null the operation is executed on the current thread i.e. for Universal App set this to ParticleCloud.SyncContext = System.Threading.SynchronizationContext.Current; in the App.xaml.cs inside the OnLaunch function
Public propertyYourEventUri
Gets the uri to the users Events. Usally https://api.particle.io/v1/devices/events
Top
Methods
  NameDescription
Public methodClaimDeviceAsync
Claims the specified device for the logged in user
Public methodDispose
Releases unmanaged and - optionally - managed resources mainly the underlining HttpClient
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFirePropertyChanged
Fires the property changed.
(Inherited from ParticleBase.)
Public methodGetDevicesAsync
Get the list of devices the user has access to
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoginWithUserAsync
Logs into ParticleCloud with the given username and password
Public methodLogout
Logs the user out locally
Public methodMakeDeleteRequestAsync
Makes the delete request asynchronous to the particle cloud
Public methodMakeDeleteRequestWithAuthTestAsync
Calls and if it returns a status code of Unauthorized try s to refresh the token and makes the request again
Public methodMakeGetRequestAsync
Makes the get request asynchronous to the cloud api
Public methodMakeGetRequestWithAuthTestAsync
Calls and if it returns a status code of Unauthorized try s to refresh the token and makes the request again
Public methodMakePostRequestAsync
Makes the post request asynchronous to the particle cloud
Public methodMakePostRequestWithAuthTestAsync
Calls and if it returns a status code of Unauthorized try s to refresh the token and makes the request again
Public methodMakePostRequestWithoutAuthAsync
Makes the post request without authentication asynchronous to the particle cloud.
Public methodMakePutRequestAsync
Makes the put request asynchronous to the particle cloud
Public methodMakePutRequestWithAuthTestAsync
Calls and if it returns a status code of Unauthorized try s to refresh the token and makes the request again
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRefreshTokenAsync
Refreshes the access token asynchronous.
Public methodRequestPasswordResetAsync
Requests the password be reset.
Protected methodSetPropertyT
Sets the property and fires
(Inherited from ParticleBase.)
Public methodSignupWithUserAsync
Sign up with new account credentials to Particle cloud
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when [property changed].
(Inherited from ParticleBase.)
Top
See Also