本文整理汇总了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);
}