chenqiyang
2022-09-02 6a99d9bf65aa5878cb409945ed2bdbdcb916d047
Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/api/c-push-notification-message.h
@@ -35,75 +35,71 @@
extern "C" {
#endif
LINPHONE_PUBLIC LinphonePushNotificationMessage *linphone_push_notification_message_new(bool_t is_using_user_defaults, const char *call_id, bool_t is_text,
LINPHONE_PUBLIC LinphonePushNotificationMessage *linphone_push_notification_message_new(const char *call_id, bool_t is_text,
                              const char *text_content, const char *subject, const char *from_addr,
                              const char *local_addr, const char *peer_addr);
/**
 * Take a reference on a #LinphonePushNotificationMessage.
 * @param message the #LinphonePushNotificationMessage object @notnil
 * @return the same #LinphonePushNotificationMessage object @notnil
 */
LINPHONE_PUBLIC LinphonePushNotificationMessage *linphone_push_notification_message_ref(LinphonePushNotificationMessage *msg);
LINPHONE_PUBLIC LinphonePushNotificationMessage *linphone_push_notification_message_ref(LinphonePushNotificationMessage *message);
/**
 * Release a #LinphonePushNotificationMessage.
 * @param message the #LinphonePushNotificationMessage object @notnil
 */
LINPHONE_PUBLIC void linphone_push_notification_message_unref(LinphonePushNotificationMessage *msg);
LINPHONE_PUBLIC void linphone_push_notification_message_unref(LinphonePushNotificationMessage *message);
/**
 * is #LinphonePushNotificationMessage build from UserDefaults data or from a #LinphoneChatMessage
 * @param[in] info The #LinphonePushNotificationMessage object
 * @return The is_using_user_defaults.
 * Gets the call id.
 * @param message The #LinphonePushNotificationMessage object @notnil
 * @return The call id. @notnil
 */
LINPHONE_PUBLIC bool_t linphone_push_notification_message_is_using_user_defaults(const LinphonePushNotificationMessage *msg);
LINPHONE_PUBLIC const char *linphone_push_notification_message_get_call_id(const LinphonePushNotificationMessage *message);
/**
 * Gets the call_id.
 * @param[in] info The #LinphonePushNotificationMessage object
 * @return The call_id.
 * Returns wether it is a text message or not.
 * @param message The #LinphonePushNotificationMessage object @notnil
 * @return TRUE if it is a text message, FALSE otherwise.
 */
LINPHONE_PUBLIC const char *linphone_push_notification_message_get_call_id(const LinphonePushNotificationMessage *msg);
/**
 * return true if it is a text message.
 * @param[in] info The #LinphonePushNotificationMessage object
 * @return The is_text.
 */
LINPHONE_PUBLIC bool_t linphone_push_notification_message_is_text(const LinphonePushNotificationMessage *msg);
LINPHONE_PUBLIC bool_t linphone_push_notification_message_is_text(const LinphonePushNotificationMessage *message);
/**
 * Gets the text content.
 * @param[in] info The #LinphonePushNotificationMessage object
 * @return The text_content.
 * @param message The #LinphonePushNotificationMessage object @notnil
 * @return The text content or NULL. @maybenil
 */
LINPHONE_PUBLIC const char *linphone_push_notification_message_get_text_content(const LinphonePushNotificationMessage *msg);
LINPHONE_PUBLIC const char *linphone_push_notification_message_get_text_content(const LinphonePushNotificationMessage *message);
/**
 * Gets the subject.
 * @param[in] info The #LinphonePushNotificationMessage object
 * @return The subject.
 * @param message The #LinphonePushNotificationMessage object @notnil
 * @return The subject or NULL. @maybenil
 */
LINPHONE_PUBLIC const char *linphone_push_notification_message_get_subject(const LinphonePushNotificationMessage *msg);
LINPHONE_PUBLIC const char *linphone_push_notification_message_get_subject(const LinphonePushNotificationMessage *message);
/**
 * Gets the from_addr.
 * @param[in] info The #LinphonePushNotificationMessage object
 * @return The from_addr.
 * Gets the from address.
 * @param message The #LinphonePushNotificationMessage object @notnil
 * @return The from #LinphoneAddress. @notnil
 */
LINPHONE_PUBLIC const LinphoneAddress *linphone_push_notification_message_get_from_addr(const LinphonePushNotificationMessage *msg);
LINPHONE_PUBLIC const LinphoneAddress *linphone_push_notification_message_get_from_addr(const LinphonePushNotificationMessage *message);
/**
 * Gets the local_addr.
 * @param[in] info The #LinphonePushNotificationMessage object
 * @return The local_addr.
 * Gets the local address.
 * @param message The #LinphonePushNotificationMessage object @notnil
 * @return The local #LinphoneAddress. @notnil
 */
LINPHONE_PUBLIC const LinphoneAddress *linphone_push_notification_message_get_local_addr(const LinphonePushNotificationMessage *msg);
LINPHONE_PUBLIC const LinphoneAddress *linphone_push_notification_message_get_local_addr(const LinphonePushNotificationMessage *message);
/**
 * Gets the peer_addr.
 * @param[in] info The #LinphonePushNotificationMessage object
 * @return The peer_addr.
 * Gets the peer address.
 * @param message The #LinphonePushNotificationMessage object @notnil
 * @return The peer #LinphoneAddress. @notnil
 */
LINPHONE_PUBLIC const LinphoneAddress *linphone_push_notification_message_get_peer_addr(const LinphonePushNotificationMessage *msg);
LINPHONE_PUBLIC const LinphoneAddress *linphone_push_notification_message_get_peer_addr(const LinphonePushNotificationMessage *message);
/**
 * @}
@@ -113,4 +109,4 @@
}
#endif
#endif /* LINPHONE_PUSH_NOTIFICATION_MESSAGE_H */
#endif /* LINPHONE_PUSH_NOTIFICATION_MESSAGE_H */