mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:25:11 +00:00
17 lines
290 B
C
17 lines
290 B
C
#include <Matrix.h>
|
|
|
|
HashMap *
|
|
MatrixCreateNotice(char *body)
|
|
{
|
|
HashMap *map;
|
|
if (!body)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
map = HashMapCreate();
|
|
HashMapSet(map, "msgtype", JsonValueString("m.notice"));
|
|
HashMapSet(map, "body", JsonValueString(body));
|
|
|
|
return map;
|
|
}
|