public class ProvisioningProfile extends Object
| Constructor and Description |
|---|
ProvisioningProfile(ProvisioningProfileDto data,
ProvisioningProfileClient provisioningProfileClient)
Constructs a provisioning profile entity
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBrokerDSTSwitchTimezone()
Returns broker DST timezone name from Time Zone Database
|
String |
getBrokerTimezone()
Returns broker timezone name from Time Zone Database
|
String |
getId()
Returns profile id
|
String |
getName()
Returns profile name
|
String |
getStatus()
Returns profile status.
|
int |
getVersion()
Returns profile version.
|
CompletableFuture<Void> |
reload()
Reloads provisioning profile from API
|
CompletableFuture<Void> |
remove()
Removes provisioning profile.
|
CompletableFuture<Void> |
update(ProvisioningProfileUpdateDto profile)
Updates provisioning profile
|
CompletableFuture<Void> |
uploadFile(String fileName,
InputStream fileContents)
Uploads a file to provisioning profile.
|
CompletableFuture<Void> |
uploadFile(String fileName,
String filePath)
Uploads a file to provisioning profile.
|
public ProvisioningProfile(ProvisioningProfileDto data, ProvisioningProfileClient provisioningProfileClient)
data - provisioning profile dataprovisioningProfileClient - provisioning profile REST API clientpublic String getId()
public String getName()
public int getVersion()
public String getStatus()
public String getBrokerTimezone()
public String getBrokerDSTSwitchTimezone()
public CompletableFuture<Void> reload()
public CompletableFuture<Void> remove()
public CompletableFuture<Void> uploadFile(String fileName, String filePath)
fileName - name of the file to upload. Allowed values are servers.dat for MT5 profile, broker.srv for
MT4 profilefilePath - path to a file to uploadpublic CompletableFuture<Void> uploadFile(String fileName, InputStream fileContents)
fileName - name of the file to upload. Allowed values are servers.dat for MT5 profile, broker.srv for
MT4 profilefileContents - input stream containing file contentspublic CompletableFuture<Void> update(ProvisioningProfileUpdateDto profile)
profile - provisioning profile updateCopyright © 2022. All rights reserved.