Azure / Azure/azure-functions-java-library

How to bind input JSON and use it as POJO?

オープン
#91 コメント 0 件 リアクション 0 件 担当者 1 名 @amamounelsayed が担当を希望しています GitHub で見る
area:java-functions rich-types
主要言語
Java
スター
45
フォーク
49
PR マージ指標
30日以内にマージされた PR はありません

説明

For example, the input queue message is JSON :
```
{
"image_path":"1905/10/1234/1234.jpg",
"watermakr_id":"1234"
}
```

And I need it automatically serialized as POJO.
So I can access its properties like this :

```
@FunctionName("queueMessageTriggerForWatermark")
public void BlobQueueTriggerForWatermark(
@QueueTrigger(name = "message", queueName = "image-watermark-queue") String message,
@BlobInput(name = "file1", dataType = "binary", path = "{**queueTrigger.path**}.jpg") byte[] arInputImage_org) throws Exception {
```

How to make it possible?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。