C# Class TraktPlugin.TraktLists

Datei anzeigen Open project: trakt/Trakt-for-Mediaportal Class Usage Examples

Public Methods

Method Description
ClearItemsInList ( string username, int id ) : void

Temporarily clears all items in a list Next time list contents will be refereshed online

ClearListCache ( string username ) : void
ClearListItemCache ( string username, string id ) : void
GetListDetailsFromUser ( TraktListDetail &list ) : bool

Get all details needed to create a new list or edit existing list

GetListItemsForUser ( string username, int id ) : IEnumerable

Get list items for user

GetListsForUser ( string username ) : IEnumerable

Get custom lists created by a user

GetUserListSelections ( List lists ) : List

Get the ids for each list selected by a user in the Multi-Select dialog

Private Methods

Method Description
GetMultiSelectItems ( List lists ) : List
GetPrivacyLevelFromTranslation ( string translatedString ) : string
GetPrivacyLevelIcon ( string privacyLevel ) : string
GetPrivacyLevelTranslation ( string privacyLevel ) : string

Method Details

ClearItemsInList() public static method

Temporarily clears all items in a list Next time list contents will be refereshed online
public static ClearItemsInList ( string username, int id ) : void
username string
id int
return void

ClearListCache() public static method

public static ClearListCache ( string username ) : void
username string
return void

ClearListItemCache() public static method

public static ClearListItemCache ( string username, string id ) : void
username string
id string
return void

GetListDetailsFromUser() public static method

Get all details needed to create a new list or edit existing list
public static GetListDetailsFromUser ( TraktListDetail &list ) : bool
list TraktPlugin.TraktAPI.DataStructures.TraktListDetail returns list details
return bool

GetListItemsForUser() public static method

Get list items for user
public static GetListItemsForUser ( string username, int id ) : IEnumerable
username string
id int
return IEnumerable

GetListsForUser() public static method

Get custom lists created by a user
public static GetListsForUser ( string username ) : IEnumerable
username string
return IEnumerable

GetUserListSelections() public static method

Get the ids for each list selected by a user in the Multi-Select dialog
public static GetUserListSelections ( List lists ) : List
lists List
return List