C# 클래스 BeatMachine.Model.DataModel

상속: ViewModelBase
파일 보기 프로젝트 열기: yavorg/Beat-Machine 1 사용 예제들

공개 메소드들

메소드 설명
AnalyzeSongs ( object state ) : void
AnalyzeSongs_CatalogUpdateCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
DataModel ( ) : System
DiffSongs ( object state ) : void
DownloadAnalyzedSongs ( object state ) : void
DownloadAnalyzedSongsAlreadyInRemoteCatalog ( object state ) : void
DownloadAnalyzedSongsAlreadyInRemoteCatalog_CatalogReadCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
DownloadAnalyzedSongs_CatalogReadCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
GetAnalyzedSongs ( object state ) : void
GetSongsOnDevice ( object state ) : void
Initialize ( ) : void
LoadCatalogId ( object state ) : void

Ensures Model.CatalogId is populated. Will try the following: 1. Try loading it from the "CatalogId" setting in storage 2. If (1) is successful, it will try reading 1 song from the catalog to make sure it is there on the web service 3. If (1) or (2) fails, it will create a new catalog on the web service

LoadCatalogIdNeedsToCheckCatalogId_CatalogUpdateCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
LoadCatalogIdNeedsToCreateCatalog_CatalogCreateCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
RunWorkflow ( string eventPropertyName ) : void

This method will look at the state of this object and run the remaining steps in the workflow to make sure the data is fully loaded. This is useful in situaltions where the model may get serialized and stored, and then needs to be able to resume loading based on its state.

비공개 메소드들

메소드 설명
AnalyzeSongsNeedsToRunAgain ( ) : void
CreateApiInstance ( ) : BeatMachine.EchoNest.EchoNestApi
DownloadAnalyzedSongsAlreadyInRemoteCatalogNeedsToRunAgain ( ) : void
DownloadAnalyzedSongsNeedsToRunAgain ( ) : void
LoadCatalogIdNeedsToCheckCatalogId ( string id ) : void
LoadCatalogIdNeedsToCreateCatalog ( ) : void
LoadCatalogIdNeedsToRunAgain ( ) : void
PropertyNameMatchesEventName ( string propertyName, string eventPropertyName ) : bool
StoreDownloadedSongs ( BeatMachine.EchoNest.Model.Catalog cat ) : void

메소드 상세

AnalyzeSongs() 공개 메소드

public AnalyzeSongs ( object state ) : void
state object
리턴 void

AnalyzeSongs_CatalogUpdateCompleted() 공개 메소드

public AnalyzeSongs_CatalogUpdateCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
sender object
e BeatMachine.EchoNest.EchoNestApiEventArgs
리턴 void

DataModel() 공개 메소드

public DataModel ( ) : System
리턴 System

DiffSongs() 공개 메소드

public DiffSongs ( object state ) : void
state object
리턴 void

DownloadAnalyzedSongs() 공개 메소드

public DownloadAnalyzedSongs ( object state ) : void
state object
리턴 void

DownloadAnalyzedSongsAlreadyInRemoteCatalog() 공개 메소드

public DownloadAnalyzedSongsAlreadyInRemoteCatalog ( object state ) : void
state object
리턴 void

DownloadAnalyzedSongsAlreadyInRemoteCatalog_CatalogReadCompleted() 공개 메소드

public DownloadAnalyzedSongsAlreadyInRemoteCatalog_CatalogReadCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
sender object
e BeatMachine.EchoNest.EchoNestApiEventArgs
리턴 void

DownloadAnalyzedSongs_CatalogReadCompleted() 공개 메소드

public DownloadAnalyzedSongs_CatalogReadCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
sender object
e BeatMachine.EchoNest.EchoNestApiEventArgs
리턴 void

GetAnalyzedSongs() 공개 메소드

public GetAnalyzedSongs ( object state ) : void
state object
리턴 void

GetSongsOnDevice() 공개 메소드

public GetSongsOnDevice ( object state ) : void
state object
리턴 void

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

LoadCatalogId() 공개 메소드

Ensures Model.CatalogId is populated. Will try the following: 1. Try loading it from the "CatalogId" setting in storage 2. If (1) is successful, it will try reading 1 song from the catalog to make sure it is there on the web service 3. If (1) or (2) fails, it will create a new catalog on the web service
public LoadCatalogId ( object state ) : void
state object
리턴 void

LoadCatalogIdNeedsToCheckCatalogId_CatalogUpdateCompleted() 공개 메소드

public LoadCatalogIdNeedsToCheckCatalogId_CatalogUpdateCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
sender object
e BeatMachine.EchoNest.EchoNestApiEventArgs
리턴 void

LoadCatalogIdNeedsToCreateCatalog_CatalogCreateCompleted() 공개 메소드

public LoadCatalogIdNeedsToCreateCatalog_CatalogCreateCompleted ( object sender, BeatMachine.EchoNest.EchoNestApiEventArgs e ) : void
sender object
e BeatMachine.EchoNest.EchoNestApiEventArgs
리턴 void

RunWorkflow() 공개 메소드

This method will look at the state of this object and run the remaining steps in the workflow to make sure the data is fully loaded. This is useful in situaltions where the model may get serialized and stored, and then needs to be able to resume loading based on its state.
public RunWorkflow ( string eventPropertyName ) : void
eventPropertyName string An optional eventPropertyName, /// to be used if this is attached as part of a property /// changed handler. If not used as part of the handler, /// set this to null.
리턴 void