C# Class CloudAppSharp.CloudApp

ファイルを表示 Open project: rzhw/CloudAppSharp Class Usage Examples

Public Methods

Method Description
AddBookmark ( Uri uri ) : CloudAppItem

Creates a bookmark from a given URI. Requires authentication.

AddBookmark ( Uri uri, string name ) : CloudAppItem

Creates a bookmark from a given URI. Requires authentication.

AddBookmark ( string uri ) : CloudAppItem

Creates a bookmark from a given URI. Requires authentication.

AddBookmark ( string uri, string name ) : CloudAppItem

Creates a bookmark from a given URI. Requires authentication.

Connect ( string email, string password ) : void

Attempts to connect to the CloudApp service with the specified email and password.

Connect ( string email, string password, bool isHA1 ) : void

Attempts to connect to the CloudApp service with the specified email and password or HA1 hash.

ConnectAsync ( string email, string password ) : void

Attempts to connect to the CloudApp service asynchronously with the specified email and password.

ConnectAsync ( string email, string password, bool isHA1 ) : void

Attempts to connect to the CloudApp service asynchronously with the specified email and password or HA1 hash.

DeleteItem ( CloudAppItem item ) : void

Deletes an item on CloudApp added by the logged in user. Requires authentication.

GetCredentials ( ) : DigestCredentials

Returns the HTTP digest credentials used to sign into CloudApp.

GetItemFromUri ( Uri uri ) : CloudAppItem

Retrieves information about an item on CloudApp.

GetItemFromUri ( string uri ) : CloudAppItem

Retrieves information about an item on CloudApp.

GetItems ( ) : List

Retrieves a list of items added by the logged in user to CloudApp. Requires authentication.

GetItems ( int limit ) : List

Retrieves a list of items added by the logged in user to CloudApp. Requires authentication.

RenameItem ( CloudAppItem item, string newName ) : CloudAppItem

Renames an item on CloudApp added by the logged in user. Requires authentication.

SetPrivacy ( CloudAppItem item, bool setPrivate ) : CloudAppItem

Sets the privacy toggle of an item on CloudApp added by the logged in user. Requires authentication.

Private Methods

Method Description
CloudApp ( ) : System
ConnectCode ( string email, string password, bool isHA1 ) : void
ConnectCodeGetResponse ( HttpWebRequest wr, int retriesLeft ) : HttpWebResponse

Method Details

AddBookmark() public method

Creates a bookmark from a given URI. Requires authentication.
public AddBookmark ( Uri uri ) : CloudAppItem
uri System.Uri The URI to create a bookmark from.
return CloudAppItem

AddBookmark() public method

Creates a bookmark from a given URI. Requires authentication.
public AddBookmark ( Uri uri, string name ) : CloudAppItem
uri System.Uri The URI to create a bookmark from.
name string The name for the bookmark.
return CloudAppItem

AddBookmark() public method

Creates a bookmark from a given URI. Requires authentication.
public AddBookmark ( string uri ) : CloudAppItem
uri string The URI to create a bookmark from.
return CloudAppItem

AddBookmark() public method

Creates a bookmark from a given URI. Requires authentication.
public AddBookmark ( string uri, string name ) : CloudAppItem
uri string The URI to create a bookmark from.
name string The name for the bookmark.
return CloudAppItem

Connect() public method

Attempts to connect to the CloudApp service with the specified email and password.
public Connect ( string email, string password ) : void
email string The email associated with the credentials.
password string The password associated with the credentials.
return void

Connect() public method

Attempts to connect to the CloudApp service with the specified email and password or HA1 hash.
public Connect ( string email, string password, bool isHA1 ) : void
email string The email associated with the credentials.
password string The password or precalculated HA1 associated with the credentials.
isHA1 bool This specifies if the password field is a password, or a hash. True if a hash, false if a password.
return void

ConnectAsync() public method

Attempts to connect to the CloudApp service asynchronously with the specified email and password.
public ConnectAsync ( string email, string password ) : void
email string The email associated with the credentials.
password string The password associated with the credentials.
return void

ConnectAsync() public method

Attempts to connect to the CloudApp service asynchronously with the specified email and password or HA1 hash.
public ConnectAsync ( string email, string password, bool isHA1 ) : void
email string The email associated with the credentials.
password string The password or precalculated HA1 associated with the credentials.
isHA1 bool This specifies if the password field is a password, or a hash. True if a hash, false if a password.
return void

DeleteItem() public method

Deletes an item on CloudApp added by the logged in user. Requires authentication.
public DeleteItem ( CloudAppItem item ) : void
item CloudAppItem The item to delete.
return void

GetCredentials() public method

Returns the HTTP digest credentials used to sign into CloudApp.
public GetCredentials ( ) : DigestCredentials
return DigestCredentials

GetItemFromUri() public static method

Retrieves information about an item on CloudApp.
public static GetItemFromUri ( Uri uri ) : CloudAppItem
uri System.Uri The uri to the item in question (e.g. http://cl.ly/gee).
return CloudAppItem

GetItemFromUri() public static method

Retrieves information about an item on CloudApp.
public static GetItemFromUri ( string uri ) : CloudAppItem
uri string The uri to the item in question (e.g. http://cl.ly/gee).
return CloudAppItem

GetItems() public method

Retrieves a list of items added by the logged in user to CloudApp. Requires authentication.
public GetItems ( ) : List
return List

GetItems() public method

Retrieves a list of items added by the logged in user to CloudApp. Requires authentication.
public GetItems ( int limit ) : List
limit int How many items to retrieve at most.
return List

RenameItem() public method

Renames an item on CloudApp added by the logged in user. Requires authentication.
public RenameItem ( CloudAppItem item, string newName ) : CloudAppItem
item CloudAppItem The item to rename.
newName string The new name for the item.
return CloudAppItem

SetPrivacy() public method

Sets the privacy toggle of an item on CloudApp added by the logged in user. Requires authentication.
public SetPrivacy ( CloudAppItem item, bool setPrivate ) : CloudAppItem
item CloudAppItem The item to set the privacy of.
setPrivate bool Whether to set the item to private.
return CloudAppItem