Wolfgang Schölmberger
Member
Hi everybody,
I have again a bit of C#-code that I should translate to ABL, but I can't really figure out how.
here is the C'-code:
until now I came up with the following translation:
My problem ist
and here especailly the expression
I have absolutely no idea of how to code this in ABL and would really appreciate any help and informaton.
TIA, Wolf
I have again a bit of C#-code that I should translate to ABL, but I can't really figure out how.
here is the C'-code:
public static FileDownloadResult DownloadDocumentContent(this Document document)
{
if (document.FileDownloadRelationLink == null)
document = document.GetDocumentFromSelfRelation();
var downloadResponse = document.PostToFileDownloadRelationForStreamAsync(
new FileDownload()
{
TargetFileType = FileDownloadType.PDF
}).Result;
return new FileDownloadResult()
{
Stream = downloadResponse.Content,
};
}
until now I came up with the following translation:
IF Document:FileDownloadRelationLink = ?
THEN Document = Document:GetDocumentFromSelfRelation().
FileDownload = NEW DocuWare.Platform.ServerClient.FileDownload().
FileDownload:TargetFileType = FileDownloadType:PDF.
My problem ist
PostToFileDownloadRelationForStreamAsync
, which is descibed here: Document.PostToFileDownloadRelationForStreamAsync Methodand here especailly the expression
Task<DeserializedHttpResponse<Stream>>
I have absolutely no idea of how to code this in ABL and would really appreciate any help and informaton.
TIA, Wolf