C# Class PhoneApp1.AuthenticatedUser

Afficher le fichier Open project: totobogy/ReadmillDotNet

Méthodes publiques

Méthode Description
AddBookToLocalCollection ( Book book ) : void

Must only be called after the actual operation on Readmill has succeeded. This is only an optimization to avoid extra web service call

GetMeAsync ( bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task
GetReadingForBook ( string bookId ) : Reading
HasBook ( string bookId, bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task
HasHighlight ( string highlightId, bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task
LoadCollectedBooksAsync ( bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task>
LoadCollectedHighlightsAsync ( List highlightIds, bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task>
RemoveBookFromLocalCollection ( string bookId ) : void

Must only be called after the actual operation on Readmill has succeeded. This is only an optimization to avoid extra web service call

TryCollectHighlight ( Highlight highlight ) : void

Must only be called after the actual operation on Readmill has succeeded.

TryLoadCollectedHighlightsList ( bool forceRefresh = false ) : List
TryRemoveHighlight ( string id ) : void

Must only be called after the actual operation on Readmill has succeeded

TrySaveCollectedHighlightsLocally ( ) : bool

Private Methods

Méthode Description
AuthenticatedUser ( ) : System

Method Details

AddBookToLocalCollection() public méthode

Must only be called after the actual operation on Readmill has succeeded. This is only an optimization to avoid extra web service call
public AddBookToLocalCollection ( Book book ) : void
book Com.Readmill.Api.DataContracts.Book
Résultat void

GetMeAsync() public méthode

public GetMeAsync ( bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task
forceRefresh bool
cancelToken System.Threading.CancellationToken
Résultat Task

GetReadingForBook() public méthode

public GetReadingForBook ( string bookId ) : Reading
bookId string
Résultat Com.Readmill.Api.DataContracts.Reading

HasBook() public méthode

public HasBook ( string bookId, bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task
bookId string
forceRefresh bool
cancelToken System.Threading.CancellationToken
Résultat Task

HasHighlight() public méthode

public HasHighlight ( string highlightId, bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task
highlightId string
forceRefresh bool
cancelToken System.Threading.CancellationToken
Résultat Task

LoadCollectedBooksAsync() public méthode

public LoadCollectedBooksAsync ( bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task>
forceRefresh bool
cancelToken System.Threading.CancellationToken
Résultat Task>

LoadCollectedHighlightsAsync() public méthode

public LoadCollectedHighlightsAsync ( List highlightIds, bool forceRefresh = false, CancellationToken cancelToken = default(CancellationToken) ) : Task>
highlightIds List
forceRefresh bool
cancelToken System.Threading.CancellationToken
Résultat Task>

RemoveBookFromLocalCollection() public méthode

Must only be called after the actual operation on Readmill has succeeded. This is only an optimization to avoid extra web service call
public RemoveBookFromLocalCollection ( string bookId ) : void
bookId string
Résultat void

TryCollectHighlight() public méthode

Must only be called after the actual operation on Readmill has succeeded.
public TryCollectHighlight ( Highlight highlight ) : void
highlight Com.Readmill.Api.DataContracts.Highlight
Résultat void

TryLoadCollectedHighlightsList() public méthode

public TryLoadCollectedHighlightsList ( bool forceRefresh = false ) : List
forceRefresh bool
Résultat List

TryRemoveHighlight() public méthode

Must only be called after the actual operation on Readmill has succeeded
public TryRemoveHighlight ( string id ) : void
id string
Résultat void

TrySaveCollectedHighlightsLocally() public méthode

public TrySaveCollectedHighlightsLocally ( ) : bool
Résultat bool