C# Класс CloudAppSharp.CloudApp

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CloudApp ( ) : System
ConnectCode ( string email, string password, bool isHA1 ) : void
ConnectCodeGetResponse ( HttpWebRequest wr, int retriesLeft ) : HttpWebResponse

Описание методов

AddBookmark() публичный Метод

Creates a bookmark from a given URI. Requires authentication.
public AddBookmark ( Uri uri ) : CloudAppItem
uri System.Uri The URI to create a bookmark from.
Результат CloudAppItem

AddBookmark() публичный Метод

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.
Результат CloudAppItem

AddBookmark() публичный Метод

Creates a bookmark from a given URI. Requires authentication.
public AddBookmark ( string uri ) : CloudAppItem
uri string The URI to create a bookmark from.
Результат CloudAppItem

AddBookmark() публичный Метод

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.
Результат CloudAppItem

Connect() публичный Метод

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.
Результат void

Connect() публичный Метод

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.
Результат void

ConnectAsync() публичный Метод

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.
Результат void

ConnectAsync() публичный Метод

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.
Результат void

DeleteItem() публичный Метод

Deletes an item on CloudApp added by the logged in user. Requires authentication.
public DeleteItem ( CloudAppItem item ) : void
item CloudAppItem The item to delete.
Результат void

GetCredentials() публичный Метод

Returns the HTTP digest credentials used to sign into CloudApp.
public GetCredentials ( ) : DigestCredentials
Результат DigestCredentials

GetItemFromUri() публичный статический Метод

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).
Результат CloudAppItem

GetItemFromUri() публичный статический Метод

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).
Результат CloudAppItem

GetItems() публичный Метод

Retrieves a list of items added by the logged in user to CloudApp. Requires authentication.
public GetItems ( ) : List
Результат List

GetItems() публичный Метод

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.
Результат List

RenameItem() публичный Метод

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.
Результат CloudAppItem

SetPrivacy() публичный Метод

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.
Результат CloudAppItem