public class AliasServiceImpl extends java.lang.Object implements AliasService
| Constructor and Description |
|---|
AliasServiceImpl(RepositoryFactory repositoryFactory)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<Address> |
resolveAddress(UnresolvedAddress unresolvedAddress)
This method returns the resolved
Address from the UnresolvedAddress. |
io.reactivex.Observable<MosaicId> |
resolveMosaicId(UnresolvedMosaicId unresolvedMosaicId)
This method returns the resolved
MosaicId from the UnresolvedMosaicId. |
public AliasServiceImpl(RepositoryFactory repositoryFactory)
repositoryFactory - repository factory.public io.reactivex.Observable<MosaicId> resolveMosaicId(UnresolvedMosaicId unresolvedMosaicId)
AliasServiceMosaicId from the UnresolvedMosaicId. If the
UnresolvedMosaicId is an alias, it finds the real MosaicId by using the
namespace endpoints.resolveMosaicId in interface AliasServiceunresolvedMosaicId - the unresolvedMosaicIdMosaicId from the namespace endpoint if it's an alias or Mosaic Id if it's an
mosaic id.public io.reactivex.Observable<Address> resolveAddress(UnresolvedAddress unresolvedAddress)
AliasServiceAddress from the UnresolvedAddress. If the
UnresolvedAddress is an alias, it finds the real Address by using the namespace
endpoints.resolveAddress in interface AliasServiceunresolvedAddress - the unresolvedAddressAddress from the namespace endpoint if it's an alias or Address if it's an
address.