本文整理匯總了TypeScript中@mmoaig/mmoaig-core.BackendService類的典型用法代碼示例。如果您正苦於以下問題:TypeScript BackendService類的具體用法?TypeScript BackendService怎麽用?TypeScript BackendService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了BackendService類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: checkForMatchCompletion
checkForMatchCompletion(): Observable<boolean> {
return this.backend
.get(MatchEndpoint, 1)
.pipe(
map((match: BackendMatchResponse) => match.data.attributes.status === 'MatchComplete')
);
}
示例2: resolve
resolve(): Observable<BackendMatchListResponse> {
return this.backend.list(MatchEndpoint);
}
示例3: resolve
resolve(): Observable<BackendUserListResponse> {
return this.backend.list(UserEndpoint);
}
示例4: resolve
resolve(route: ActivatedRouteSnapshot): Observable<BackendMatchResponse> {
return this.backend.get(MatchEndpoint, route.params.id);
}
示例5: resolve
resolve(): Observable<BackendGithubRepositoryListResponse> {
return this.backend.list(GithubRepositoryEndpoint);
}
示例6: update
update(matchId: number, attributes: BackendMatchAttributes): Observable<any> {
return this.backend.update(MatchEndpoint, matchId, attributes);
}
示例7: createRound
// TODO: This is the good stuff here
createRound(): Observable<any> {
return this.backend
.update(MatchEndpoint, 1, {status: 'MatchComplete'});
}
示例8: resolve
resolve(): Observable<BackendBotListResponse> {
return this.backend.list(BotEndpoint);
}