Parsee/src/Events.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;
}