C# Class O365_WinPhone_ArtCurator.AppViewModel

Inheritance: INotifyPropertyChanged
显示文件 Open project: OfficeDev/O365-WinPhone-ArtCurator Class Usage Examples

Public Methods

Method Description
AppViewModel ( ) : Microsoft.IdentityModel.Clients.ActiveDirectory
Authenticate ( ) : void

Kicks off in-browser authentication flow.

AuthenticateSilenty ( ) : Task

Attempts to authenticate silently by using a cached token, thus bringing the user right to the app without having to go through the authentication process again.

GetMessages ( ) : void

Gets messages from the model.

PopulateInbox ( ) : Task

Send three emails with attachments to the user's inbox. This is done just to provide developers with sample content to demo the app properly.

Respond ( string actionType ) : Task

Respond based on actionType ("Like" or "Dislike") and settings.

Private Methods

Method Description
RaisePropertyChanged ( [ propertyName = "" ) : void

Method Details

AppViewModel() public method

public AppViewModel ( ) : Microsoft.IdentityModel.Clients.ActiveDirectory
return Microsoft.IdentityModel.Clients.ActiveDirectory

Authenticate() public method

Kicks off in-browser authentication flow.
public Authenticate ( ) : void
return void

AuthenticateSilenty() public method

Attempts to authenticate silently by using a cached token, thus bringing the user right to the app without having to go through the authentication process again.
public AuthenticateSilenty ( ) : Task
return Task

GetMessages() public method

Gets messages from the model.
public GetMessages ( ) : void
return void

PopulateInbox() public method

Send three emails with attachments to the user's inbox. This is done just to provide developers with sample content to demo the app properly.
public PopulateInbox ( ) : Task
return Task

Respond() public method

Respond based on actionType ("Like" or "Dislike") and settings.
public Respond ( string actionType ) : Task
actionType string "Like" or "Dislike".
return Task