Commit ba3dc48b authored by dev0tion's avatar dev0tion

Add general info call

parent 4eefc3e6
...@@ -72,6 +72,20 @@ export class ApiService { ...@@ -72,6 +72,20 @@ export class ApiService {
.map((response: Response) => response); .map((response: Response) => response);
} }
/**
* Get general wallet info from the API.
*/
getGeneralInfo(data: WalletInfo): Observable<any> {
let params: URLSearchParams = new URLSearchParams();
params.set('Name', data.walletName);
return Observable
.interval(this.pollingInterval)
.startWith(0)
.switchMap(() => this.http.get(this.webApiUrl + '/wallet/general-info', new RequestOptions({headers: this.headers, search: params})))
.map((response: Response) => response);
}
/** /**
* Get wallet balance info from the API. * Get wallet balance info from the API.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment