C# Class ChatterService.ChatterRestService

Afficher le fichier Open project: CTSIatUCSF/gadgets Class Usage Examples

Méthodes publiques

Méthode Description
ChatterRestService ( string url, bool logService ) : System
Follow ( string viewerId, string ownerId ) : ChatterResponse
GetAccessToken ( ) : string
GetFollowers ( string userId ) : ChatterResponse
GetFollowing ( string userId ) : ChatterResponse
GetNextPage ( ChatterResponse resp ) : ChatterResponse
GetPreviousPage ( ChatterResponse resp ) : ChatterResponse
Login ( string client_id, string grant_type, string client_secret, string username, string password ) : string
Unfollow ( string viewerId, string ownerId ) : ChatterResponse

Private Methods

Méthode Description
MakeRestCall ( string call, RestSharp method, string>.Dictionary postParams ) : ChatterResponse
MakeUserRestCall ( string userId, string call ) : ChatterResponse
MakeUserRestCall ( string userId, string call, RestSharp method, string>.Dictionary postParams ) : ChatterResponse
WriteLogToFile ( String msg ) : void

Method Details

ChatterRestService() public méthode

public ChatterRestService ( string url, bool logService ) : System
url string
logService bool
Résultat System

Follow() public méthode

public Follow ( string viewerId, string ownerId ) : ChatterResponse
viewerId string
ownerId string
Résultat ChatterResponse

GetAccessToken() public méthode

public GetAccessToken ( ) : string
Résultat string

GetFollowers() public méthode

public GetFollowers ( string userId ) : ChatterResponse
userId string
Résultat ChatterResponse

GetFollowing() public méthode

public GetFollowing ( string userId ) : ChatterResponse
userId string
Résultat ChatterResponse

GetNextPage() public méthode

public GetNextPage ( ChatterResponse resp ) : ChatterResponse
resp ChatterResponse
Résultat ChatterResponse

GetPreviousPage() public méthode

public GetPreviousPage ( ChatterResponse resp ) : ChatterResponse
resp ChatterResponse
Résultat ChatterResponse

Login() public méthode

public Login ( string client_id, string grant_type, string client_secret, string username, string password ) : string
client_id string
grant_type string
client_secret string
username string
password string
Résultat string

Unfollow() public méthode

public Unfollow ( string viewerId, string ownerId ) : ChatterResponse
viewerId string
ownerId string
Résultat ChatterResponse