GLib based library to communicate with Matrix.org homeservers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
1.4 KiB

  1. /*
  2. * This file is part of matrix-glib-sdk
  3. *
  4. * matrix-glib-sdk is free software: you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation, either
  7. * version 3 of the License, or (at your option) any later version.
  8. *
  9. * matrix-glib-sdk is distributed in the hope that it will be
  10. * useful, but WITHOUT ANY WARRANTY; without even the implied
  11. * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. * See the GNU Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with matrix-glib-sdk. If not, see
  16. * <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef __MATRIX_GLIB_SDK_EVENT_RECEIPT_H__
  19. # define __MATRIX_GLIB_SDK_EVENT_RECEIPT_H__
  20. # include <glib-object.h>
  21. # include "matrix-event-base.h"
  22. G_BEGIN_DECLS
  23. # define MATRIX_EVENT_TYPE_RECEIPT matrix_event_receipt_get_type()
  24. G_DECLARE_DERIVABLE_TYPE(MatrixEventReceipt, matrix_event_receipt, MATRIX_EVENT, RECEIPT, MatrixEventBase)
  25. struct _MatrixEventReceiptClass {
  26. MatrixEventBaseClass parent_class;
  27. };
  28. MatrixEventReceipt* matrix_event_receipt_new (void);
  29. const gchar* matrix_event_receipt_get_room_id (MatrixEventReceipt *event);
  30. void matrix_event_receipt_set_room_id (MatrixEventReceipt *event, const gchar *room_id);
  31. G_END_DECLS
  32. #endif /* __MATRIX_GLIB_SDK_EVENT_RECEIPT_H__ */