C# Class Apachai.BackingStore

Show file Open project: garuma/apachai Class Usage Examples

Public Methods

Method Description
BackingStore ( ConfigManager cfg ) : System
DoWeKnowUser ( long id ) : bool
DoWeKnowUser ( long id, string token ) : bool
DoesUserNeedInfoUpdate ( long id ) : bool
FindPermaFromShort ( string shortId, string &permaId ) : bool
GetCountStats ( int &picCount, int &userCount ) : void
GetExtraUserInfos ( string id, string &screenname, string &avatarUrl, string &realName, string &url, string &desc ) : bool
GetImagesOfUserFromPic ( string picture, int count ) : List
GetLastPicturesIds ( ) : List
GetNextShortId ( ) : long
GetPictureGeo ( string image, string &geo ) : bool
GetPicturesInfos ( string filename, string &result ) : bool
GetShortUrlForImg ( string image ) : string
GetTempTokenSecret ( string token ) : string
GetTwitterInfosFromImage ( string pictureId, string &avatarUrl, string &tweetText, string &screenname, string &name, string &url, string &desc ) : void
GetUserAccessTokens ( long uid ) : OAuthToken
MapShortToLongUrl ( string shortId, string longId ) : void
RegisterImageWithTweet ( long uid, string picture, string tweet, string longUrl, string shortUrl ) : void
SaveTempTokenSecret ( string token, string tokenSecret ) : void
SetCachedStats ( string json ) : void
SetCachedTwitterInfos ( string picture, string json ) : void
SetExtraUserInfos ( long uid, string avatarUrl, string realName, string url, string desc ) : void
SetPictureGeo ( string image, string geo ) : void
SetPictureInfos ( string filename, string data ) : void
SetPictureLinks ( string picture, string json ) : void
SetUserAccessTokens ( long uid, string accessToken, string accessTokenSecret ) : void
SetUserInfos ( long uid, string screenName ) : void
TryGetCachedStats ( string &json ) : bool
TryGetCachedTwitterInfos ( string picture, string &json ) : bool
TryGetPictureLinks ( string picture, string &json ) : bool

Private Methods

Method Description
SetCachedInfos ( string ns, string id, string json, System.TimeSpan expire ) : void
TryGetCachedInfos ( string ns, string id, string &json ) : bool

Method Details

BackingStore() public method

public BackingStore ( ConfigManager cfg ) : System
cfg ConfigManager
return System

DoWeKnowUser() public method

public DoWeKnowUser ( long id ) : bool
id long
return bool

DoWeKnowUser() public method

public DoWeKnowUser ( long id, string token ) : bool
id long
token string
return bool

DoesUserNeedInfoUpdate() public method

public DoesUserNeedInfoUpdate ( long id ) : bool
id long
return bool

FindPermaFromShort() public method

public FindPermaFromShort ( string shortId, string &permaId ) : bool
shortId string
permaId string
return bool

GetCountStats() public method

public GetCountStats ( int &picCount, int &userCount ) : void
picCount int
userCount int
return void

GetExtraUserInfos() public method

public GetExtraUserInfos ( string id, string &screenname, string &avatarUrl, string &realName, string &url, string &desc ) : bool
id string
screenname string
avatarUrl string
realName string
url string
desc string
return bool

GetImagesOfUserFromPic() public method

public GetImagesOfUserFromPic ( string picture, int count ) : List
picture string
count int
return List

GetLastPicturesIds() public method

public GetLastPicturesIds ( ) : List
return List

GetNextShortId() public method

public GetNextShortId ( ) : long
return long

GetPictureGeo() public method

public GetPictureGeo ( string image, string &geo ) : bool
image string
geo string
return bool

GetPicturesInfos() public method

public GetPicturesInfos ( string filename, string &result ) : bool
filename string
result string
return bool

GetShortUrlForImg() public method

public GetShortUrlForImg ( string image ) : string
image string
return string

GetTempTokenSecret() public method

public GetTempTokenSecret ( string token ) : string
token string
return string

GetTwitterInfosFromImage() public method

public GetTwitterInfosFromImage ( string pictureId, string &avatarUrl, string &tweetText, string &screenname, string &name, string &url, string &desc ) : void
pictureId string
avatarUrl string
tweetText string
screenname string
name string
url string
desc string
return void

GetUserAccessTokens() public method

public GetUserAccessTokens ( long uid ) : OAuthToken
uid long
return OAuthToken

MapShortToLongUrl() public method

public MapShortToLongUrl ( string shortId, string longId ) : void
shortId string
longId string
return void

RegisterImageWithTweet() public method

public RegisterImageWithTweet ( long uid, string picture, string tweet, string longUrl, string shortUrl ) : void
uid long
picture string
tweet string
longUrl string
shortUrl string
return void

SaveTempTokenSecret() public method

public SaveTempTokenSecret ( string token, string tokenSecret ) : void
token string
tokenSecret string
return void

SetCachedStats() public method

public SetCachedStats ( string json ) : void
json string
return void

SetCachedTwitterInfos() public method

public SetCachedTwitterInfos ( string picture, string json ) : void
picture string
json string
return void

SetExtraUserInfos() public method

public SetExtraUserInfos ( long uid, string avatarUrl, string realName, string url, string desc ) : void
uid long
avatarUrl string
realName string
url string
desc string
return void

SetPictureGeo() public method

public SetPictureGeo ( string image, string geo ) : void
image string
geo string
return void

SetPictureInfos() public method

public SetPictureInfos ( string filename, string data ) : void
filename string
data string
return void

SetPictureLinks() public method

public SetPictureLinks ( string picture, string json ) : void
picture string
json string
return void

SetUserAccessTokens() public method

public SetUserAccessTokens ( long uid, string accessToken, string accessTokenSecret ) : void
uid long
accessToken string
accessTokenSecret string
return void

SetUserInfos() public method

public SetUserInfos ( long uid, string screenName ) : void
uid long
screenName string
return void

TryGetCachedStats() public method

public TryGetCachedStats ( string &json ) : bool
json string
return bool

TryGetCachedTwitterInfos() public method

public TryGetCachedTwitterInfos ( string picture, string &json ) : bool
picture string
json string
return bool

TryGetPictureLinks() public method

public TryGetPictureLinks ( string picture, string &json ) : bool
picture string
json string
return bool