C# Class Kippt.KipptUser

Afficher le fichier Open project: Haythem/Kippt.NET

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Authenticate ( KipptClient client, string username, string password ) : KipptUser

HTTP basic authentication.

AuthenticateAsync ( KipptClient client, string username, string password ) : void

HTTP basic authentication.

FollowUser ( KipptClient client, int userId ) : void

Follow a user.

FollowUserAsync ( KipptClient client, int userId ) : void

Follow a user.

GetUser ( KipptClient client, int userId ) : KipptUser

Returns basic informations of a user.

GetUserAsync ( KipptClient client, int userId ) : void

Returns basic informations of a user.

GetUserFollowers ( KipptClient client, int userId, int limit, int offset ) : KipptUserCollection

Returns a list of user's followers.

GetUserFollowersAsync ( KipptClient client, int userId, int limit, int offset ) : void

Returns a list of user's followers.

GetUserFollowings ( KipptClient client, int userId, int limit, int offset ) : KipptUserCollection

Get users who user follows.

GetUserFollowingsAsync ( KipptClient client, int userId, int limit, int offset ) : void

Get users who user follows.

IsFollowing ( KipptClient client, int userId ) : bool

Checks whether the logged-in user is following another.

IsFollowingAsync ( KipptClient client, int userId ) : void

Checks whether the logged-in user is following another.

Me ( KipptClient client ) : KipptUser

Returns the logged-in user profile.

MeAsync ( KipptClient client ) : void

Returns the logged-in user profile.

Search ( KipptClient client, string query, int limit, int offset ) : KipptUserCollection

Search users with keywords. Index is build out of username, description and social profiles.

SearchAsync ( KipptClient client, string query, int limit, int offset ) : void

Search users with keywords. Index is build out of username, description and social profiles.

UnFollowUser ( KipptClient client, int userId ) : void

Unfollow a user.

UnFollowUserAsync ( KipptClient client, int userId ) : void

Unfollow a user.

Method Details

Authenticate() public static méthode

HTTP basic authentication.
Empty parameters or wrong credentials.
public static Authenticate ( KipptClient client, string username, string password ) : KipptUser
client KipptClient instance.
username string Username.
password string Password.
Résultat KipptUser

AuthenticateAsync() public static méthode

HTTP basic authentication.
Empty parameters or wrong credentials.
public static AuthenticateAsync ( KipptClient client, string username, string password ) : void
client KipptClient instance.
username string Username.
password string Password.
Résultat void

FollowUser() public static méthode

Follow a user.
public static FollowUser ( KipptClient client, int userId ) : void
client KipptClient instance.
userId int User to follow.
Résultat void

FollowUserAsync() public static méthode

Follow a user.
public static FollowUserAsync ( KipptClient client, int userId ) : void
client KipptClient instance.
userId int User to follow.
Résultat void

GetUser() public static méthode

Returns basic informations of a user.
public static GetUser ( KipptClient client, int userId ) : KipptUser
client KipptClient instance.
userId int
Résultat KipptUser

GetUserAsync() public static méthode

Returns basic informations of a user.
public static GetUserAsync ( KipptClient client, int userId ) : void
client KipptClient instance.
userId int
Résultat void

GetUserFollowers() public static méthode

Returns a list of user's followers.
public static GetUserFollowers ( KipptClient client, int userId, int limit, int offset ) : KipptUserCollection
client KipptClient instance.
userId int User in question.
limit int End index.
offset int Start index.
Résultat KipptUserCollection

GetUserFollowersAsync() public static méthode

Returns a list of user's followers.
public static GetUserFollowersAsync ( KipptClient client, int userId, int limit, int offset ) : void
client KipptClient instance.
userId int User in question.
limit int End index.
offset int Start index.
Résultat void

GetUserFollowings() public static méthode

Get users who user follows.
public static GetUserFollowings ( KipptClient client, int userId, int limit, int offset ) : KipptUserCollection
client KipptClient instance.
userId int User in question.
limit int End index.
offset int Start index.
Résultat KipptUserCollection

GetUserFollowingsAsync() public static méthode

Get users who user follows.
public static GetUserFollowingsAsync ( KipptClient client, int userId, int limit, int offset ) : void
client KipptClient instance.
userId int User in question.
limit int End index.
offset int Start index.
Résultat void

IsFollowing() public static méthode

Checks whether the logged-in user is following another.
public static IsFollowing ( KipptClient client, int userId ) : bool
client KipptClient instance.
userId int User id to check against.
Résultat bool

IsFollowingAsync() public static méthode

Checks whether the logged-in user is following another.
public static IsFollowingAsync ( KipptClient client, int userId ) : void
client KipptClient instance.
userId int User id to check against.
Résultat void

Me() public static méthode

Returns the logged-in user profile.
public static Me ( KipptClient client ) : KipptUser
client KipptClient instance.
Résultat KipptUser

MeAsync() public static méthode

Returns the logged-in user profile.
public static MeAsync ( KipptClient client ) : void
client KipptClient instance.
Résultat void

Search() public static méthode

Search users with keywords. Index is build out of username, description and social profiles.
public static Search ( KipptClient client, string query, int limit, int offset ) : KipptUserCollection
client KipptClient instance.
query string Query to match with.
limit int End index.
offset int Start index.
Résultat KipptUserCollection

SearchAsync() public static méthode

Search users with keywords. Index is build out of username, description and social profiles.
public static SearchAsync ( KipptClient client, string query, int limit, int offset ) : void
client KipptClient instance.
query string Query to match with.
limit int End index.
offset int Start index.
Résultat void

UnFollowUser() public static méthode

Unfollow a user.
public static UnFollowUser ( KipptClient client, int userId ) : void
client KipptClient instance.
userId int User to unfollow.
Résultat void

UnFollowUserAsync() public static méthode

Unfollow a user.
public static UnFollowUserAsync ( KipptClient client, int userId ) : void
client KipptClient instance.
userId int User to unfollow.
Résultat void