import { Injectable } from '@angular/core' ; import { Observable } from 'rxjs' ; import { ApiService , ApiResponse } from '../../../common/api/api.service' ; import { map } from 'rxjs/operators' ; @ Injectable ( ) export class PaywallService { constructor ( private api ) { } param guid unlock ( guid ) { return this . api . get ( `api/v1/wire/threshold/${ guid }` ) . pipe ( map ( ( response ) => response . entity ) ) ; } }