C# Class PhoneApp1.AuthenticatedUser

Show file Open project: totobogy/ReadmillDotNet

Public Methods

Method 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

Method Description
AuthenticatedUser ( ) : System

Method Details

AddBookToLocalCollection() public method

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
return void

GetMeAsync() public method

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

GetReadingForBook() public method

public GetReadingForBook ( string bookId ) : Reading
bookId string
return Com.Readmill.Api.DataContracts.Reading

HasBook() public method

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

HasHighlight() public method

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

LoadCollectedBooksAsync() public method

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

LoadCollectedHighlightsAsync() public method

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

RemoveBookFromLocalCollection() public method

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
return void

TryCollectHighlight() public method

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

TryLoadCollectedHighlightsList() public method

public TryLoadCollectedHighlightsList ( bool forceRefresh = false ) : List
forceRefresh bool
return List

TryRemoveHighlight() public method

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

TrySaveCollectedHighlightsLocally() public method

public TrySaveCollectedHighlightsLocally ( ) : bool
return bool